test(): run e2e tests in production mode (#24812)

This commit is contained in:
Liam DeBeasi
2022-02-18 14:21:43 -05:00
committed by GitHub
parent 2fc2de5177
commit 0a8f44359a
9 changed files with 1936 additions and 69 deletions

File diff suppressed because it is too large Load Diff

View File

@ -36,11 +36,10 @@
},
"scripts": {
"start": "react-scripts start",
"start.ci": "npm run sync && BROWSER=none react-scripts start",
"build": "node scripts/build.js",
"build": "react-scripts build",
"test": "cypress open",
"cypress": "node_modules/.bin/cypress run --headless --browser chrome",
"e2e": "npm run sync && concurrently \"SKIP_PREFLIGHT_CHECK=true react-scripts start\" \"wait-on http-get://localhost:3000 && npm run cypress\" --kill-others --success first",
"e2e": "concurrently \"serve -s build -l 3000\" \"wait-on http-get://localhost:3000 && npm run cypress\" --kill-others --success first",
"sync": "sh ./scripts/sync.sh"
},
"eslintConfig": {
@ -66,6 +65,7 @@
"concurrently": "^6.3.0",
"cpy-cli": "^3.1.1",
"cypress": "^8.5.0",
"serve": "^13.0.2",
"wait-on": "^6.0.0",
"webpack-cli": "^4.9.1"
},