Shared: add playwright and msw to shared, remove from login

This commit is contained in:
Timofey Boyko 2024-08-20 13:11:06 +03:00
parent 8f6235424c
commit 625960da26
3 changed files with 962 additions and 27 deletions

View File

@ -10,7 +10,9 @@
"start-prod:internal": "NODE_ENV=production API_HOST=http://127.0.0.1 node server.js", "start-prod:internal": "NODE_ENV=production API_HOST=http://127.0.0.1 node server.js",
"lint": "next lint", "lint": "next lint",
"clean": "shx rm -rf .next", "clean": "shx rm -rf .next",
"deploy": "shx --silent mkdir -p ../../../publish/web/login && shx --silent mkdir -p ../../../publish/web/login/.next && shx --silent mkdir -p ../../../publish/web/login/node_modules && shx --silent mkdir -p ../../../publish/web/login/.next/static && shx cp -r .next/standalone/node_modules/* ../../../publish/web/login/node_modules && shx cp -r .next/static/* ../../../publish/web/login/.next/static && shx cp -r .next/standalone/packages/login/.next/* ../../../publish/web/login/.next && shx cp -f server.prod.js ../../../publish/web/login/server.js" "deploy": "shx --silent mkdir -p ../../../publish/web/login && shx --silent mkdir -p ../../../publish/web/login/.next && shx --silent mkdir -p ../../../publish/web/login/node_modules && shx --silent mkdir -p ../../../publish/web/login/.next/static && shx cp -r .next/standalone/node_modules/* ../../../publish/web/login/node_modules && shx cp -r .next/static/* ../../../publish/web/login/.next/static && shx cp -r .next/standalone/packages/login/.next/* ../../../publish/web/login/.next && shx cp -f server.prod.js ../../../publish/web/login/server.js",
"test:e2e": "npx playwright test",
"test:e2e:ui": "npx playwright test --ui"
}, },
"dependencies": { "dependencies": {
"@hcaptcha/react-hcaptcha": "^1.10.1", "@hcaptcha/react-hcaptcha": "^1.10.1",
@ -25,7 +27,6 @@
"styled-components": "^5.3.9" "styled-components": "^5.3.9"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.46.0",
"@svgr/webpack": "^8.1.0", "@svgr/webpack": "^8.1.0",
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^18.2.53", "@types/react": "^18.2.53",

View File

@ -91,6 +91,8 @@
"@babel/preset-typescript": "^7.21.5", "@babel/preset-typescript": "^7.21.5",
"@emotion/babel-preset-css-prop": "^10.2.1", "@emotion/babel-preset-css-prop": "^10.2.1",
"@emotion/styled": "^10.3.0", "@emotion/styled": "^10.3.0",
"@faker-js/faker": "^8.4.1",
"@playwright/test": "^1.46.1",
"@react-theming/storybook-addon": "^1.1.10", "@react-theming/storybook-addon": "^1.1.10",
"@storybook/addon-actions": "7.6.12", "@storybook/addon-actions": "7.6.12",
"@storybook/addon-contexts": "^5.3.21", "@storybook/addon-contexts": "^5.3.21",
@ -154,6 +156,9 @@
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"jest-styled-components": "^7.2.0", "jest-styled-components": "^7.2.0",
"msw": "^2.3.5",
"msw-auto-mock": "^0.25.0",
"playwright-msw": "^3.0.1",
"postcss": "^7.0.39", "postcss": "^7.0.39",
"prettier": "^3.1.0", "prettier": "^3.1.0",
"react-docgen-typescript-plugin": "^1.0.5", "react-docgen-typescript-plugin": "^1.0.5",

979
yarn.lock

File diff suppressed because it is too large Load Diff