use cypress-app-watcher-preprocessor

This commit is contained in:
Elio Bischof
2023-06-20 14:01:49 +02:00
parent 766c86071c
commit ae4c975a31
6 changed files with 2828 additions and 51 deletions

View File

@@ -8,9 +8,10 @@
"test:unit": "jest --config ./__test__/jest.config.ts",
"test:unit:watch": "pnpm test:unit --watch",
"test:integration": "pnpm mock:build && concurrently --group --names 'mock,test' --success command-test --kill-others 'pnpm:mock' 'ZITADEL_API_URL=http://localhost:22222 start-server-and-test dev http://localhost:3000 \"test:integration:run\"'",
"test:integration:watch": "concurrently --names 'mock,test' --kill-others 'pnpm:mock' 'ZITADEL_API_URL=http://localhost:22222 start-server-and-test dev http://localhost:3000 \"pnpm nodemon -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm test:integration:run\\\"\"'",
"test:integration:watch": "ZITADEL_API_URL=http://localhost:22222 concurrently --names 'mock,serve,open' --kill-others 'pnpm:mock' 'pnpm test:integration:rerunwhencompiled' 'pnpm test:integration:open'",
"test:integration:run": "cypress run --config-file ./cypress/cypress.config.ts --quiet",
"test:integration:open": "cypress open --config-file ./cypress/cypress.config.ts",
"test:integration:rerunwhencompiled": "WAIT_FOR_MESSAGE='compiled client and server successfully' cypressAppWatcher pnpm dev",
"mock": "pnpm mock:build && pnpm mock:run",
"mock:run": "pnpm mock:destroy && docker run --rm --name zitadel-mock-grpc-server --publish 22220:22220 --publish 22222:22222 zitadel-mock-grpc-server",
"mock:build": "DOCKER_BUILDKIT=1 docker build --tag zitadel-mock-grpc-server ./mock",
@@ -68,6 +69,7 @@
"autoprefixer": "10.4.13",
"concurrently": "^8.1.0",
"cypress": "^12.14.0",
"cypress-app-watcher-preprocessor": "^1.1.2",
"del-cli": "5.0.0",
"eslint-config-zitadel": "workspace:*",
"grpc-tools": "1.11.3",
@@ -87,4 +89,4 @@
"typescript": "5.0.4",
"zitadel-tailwind-config": "workspace:*"
}
}
}