Bump jest to 28 (#1437)
https://jestjs.io/blog/2022/04/25/jest-28 https://jestjs.io/docs/upgrading-to-jest28 https://github.com/facebook/jest/blob/main/CHANGELOG.md#2800 Co-authored-by: Adam Weeden <adamweeden@gmail.com>
This commit is contained in:
parent
a4ef7481de
commit
1f67a9f9a7
|
@ -52,6 +52,9 @@ jobs:
|
||||||
run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
|
run: npm ci --no-fund # Will also (via `prepare` hook): 1. install ./app, 2. build
|
||||||
- run: npm run test:playwright
|
- run: npm run test:playwright
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
# Useful to debug PlayWright tests failing in CI
|
||||||
|
# env:
|
||||||
|
# DEBUG: pw:browser*
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
|
@ -46,14 +46,14 @@
|
||||||
"relock:cli": "rm -rf ./node_modules/ ./npm-shrinkwrap.json && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
"relock:cli": "rm -rf ./node_modules/ ./npm-shrinkwrap.json && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
||||||
"relock:app": "rm -rf ./app/node_modules/ ./app/npm-shrinkwrap.json && cd app && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
"relock:app": "rm -rf ./app/node_modules/ ./app/npm-shrinkwrap.json && cd app && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
|
||||||
"relock": "npm run relock:cli; npm run relock:app",
|
"relock": "npm run relock:cli; npm run relock:app",
|
||||||
"test:integration": "jest --testRegex '.*integration-test.js'",
|
"test:integration": "jest --testRegex=integration-test",
|
||||||
"test:manual": "npm run build && bash .github/manual-test",
|
"test:manual": "npm run build && bash .github/manual-test",
|
||||||
"test:playwright": "jest --detectOpenHandles --testRegex '.*playwright-test.js'",
|
"test:playwright": "jest --detectOpenHandles --testRegex=playwright-test",
|
||||||
"test:noplaywright": "jest --testRegex '[-.]test\\.js$' --testPathIgnorePatterns '.*playwright.*'",
|
"test:noplaywright": "jest --testPathIgnorePatterns=playwright",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
"test:watch": "echo 'Remember to run npm run build:watch for the test watcher to work!' && jest --watchAll --collectCoverage=false",
|
"test:watch": "echo 'Remember to run npm run build:watch for the test watcher to work!' && jest --watchAll --collectCoverage=false",
|
||||||
"test:withlog": "LOGLEVEL=trace npm run test",
|
"test:withlog": "LOGLEVEL=trace npm run test",
|
||||||
"test": "jest --testRegex '[-.]test\\.js$'",
|
"test": "jest",
|
||||||
"watch": "npx concurrently \"npm:*:watch\""
|
"watch": "npx concurrently \"npm:*:watch\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -87,8 +87,8 @@
|
||||||
"eslint": "^8.1.0",
|
"eslint": "^8.1.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"jest": "^27.0.6",
|
"jest": "^28.1.3",
|
||||||
"playwright": "^1.21.1",
|
"playwright": "^1.24.0",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-loader": "^9.2.3",
|
"ts-loader": "^9.2.3",
|
||||||
|
@ -121,8 +121,11 @@
|
||||||
"<rootDir>/app/node_modules.*",
|
"<rootDir>/app/node_modules.*",
|
||||||
"<rootDir>/app/src.*",
|
"<rootDir>/app/src.*",
|
||||||
"<rootDir>/app/lib.*",
|
"<rootDir>/app/lib.*",
|
||||||
"<rootDir>/src.*"
|
"<rootDir>/src.*",
|
||||||
|
".+\\.d\\.ts",
|
||||||
|
".+\\.js\\.map"
|
||||||
],
|
],
|
||||||
|
"testRegex": "test\\.js",
|
||||||
"watchPathIgnorePatterns": [
|
"watchPathIgnorePatterns": [
|
||||||
"<rootDir>/app/lib.*",
|
"<rootDir>/app/lib.*",
|
||||||
"<rootDir>/app/src.*",
|
"<rootDir>/app/src.*",
|
||||||
|
|
Loading…
Reference in New Issue