use cypress for integration tests

This commit is contained in:
Elio Bischof
2023-06-05 23:27:05 +02:00
parent d312c86ac0
commit 24c1ed7dca
17 changed files with 972 additions and 343 deletions

View File

@@ -2,13 +2,20 @@
"name": "@zitadel/login",
"private": true,
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"build": "next build",
"dev": "next dev",
"test": "concurrently --kill-others-on-fail 'npm:test:unit' 'npm:test:integration'",
"test:watch": "concurrently --kill-others 'npm:test:unit:watch' 'npm:test:integration:watch'",
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"test:integration": "start-server-and-test dev http://localhost:3000 \"test:integration:run\"",
"test:integration:watch": "start-server-and-test dev http://localhost:3000 \"pnpm nodemon --verbose -e js,jsx,ts,tsx,css,scss --ignore \\\"__test__/**\\\" --exec \\\"pnpm run test:integration:run\\\"\"",
"test:integration:run": "cypress run --quiet",
"test:integration:open": "cypress open",
"lint": "next lint && prettier --check .",
"lint:fix": "prettier --write .",
"lint-staged": "lint-staged",
"build": "next build",
"prestart": "build",
"start": "next start",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
"storybook": "storybook dev -p 6006",
@@ -68,6 +75,8 @@
"@vercel/git-hooks": "1.0.0",
"@zitadel/tsconfig": "workspace:*",
"autoprefixer": "10.4.13",
"concurrently": "^8.1.0",
"cypress": "^12.13.0",
"del-cli": "5.0.0",
"eslint-config-zitadel": "workspace:*",
"eslint-plugin-storybook": "^0.6.12",
@@ -75,19 +84,21 @@
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-fetch-mock": "^3.0.3",
"jest-silent-reporter": "^0.5.0",
"lint-staged": "13.0.3",
"make-dir-cli": "3.0.0",
"msw": "^1.2.1",
"next-router-mock": "^0.9.3",
"nodemon": "^2.0.22",
"postcss": "8.4.21",
"prettier-plugin-tailwindcss": "0.1.13",
"start-server-and-test": "^2.0.0",
"storybook": "^7.0.18",
"storybook-css-modules-preset": "^1.1.1",
"tailwindcss": "3.2.4",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"ts-proto": "^1.139.0",
"typescript": "4.8.4",
"typescript": "5.0.4",
"whatwg-fetch": "^3.6.2",
"zitadel-tailwind-config": "workspace:*"
}