Skip to content

Commit 2d6cb1c

Browse files
committed
Upgrade jest
1 parent 33b48eb commit 2d6cb1c

File tree

8 files changed

+458
-461
lines changed

8 files changed

+458
-461
lines changed

.github/actions/setup-test-env/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ runs:
2626
2727
- name: Install dependencies
2828
shell: bash
29-
run: pnpm install
29+
run: |
30+
pnpm install
31+
pnpm exec playwright install

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-plugin-react-hooks": "^4.6.0",
4747
"expect-playwright": "^0.8.0",
4848
"fs-extra": "^11.1.0",
49-
"jest": "^28.1.3",
49+
"jest": "^29.7.0",
5050
"playwright-chromium": "^1.39.0",
5151
"prettier": "^2.8.8",
5252
"prettier-plugin-organize-imports": "^3.2.3",

packages/fastify-renderer/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
// ],
3232

3333
// Indicates which provider should be used to instrument code for coverage
34-
coverageProvider: 'v8',
34+
// coverageProvider: 'v8',
3535

3636
// A list of reporter names that Jest uses when writing coverage reports
3737
// coverageReporters: [

packages/fastify-renderer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"@swc/core": "^1.3.95",
8181
"@swc/jest": "^0.2.29",
8282
"@types/connect": "^3.4.35",
83-
"@types/jest": "^26.0.24",
83+
"@types/jest": "^29.5.6",
8484
"@types/node": "^18.11.9",
8585
"@types/react": "^17.0.43",
8686
"@types/react-dom": "^17.0.11",
@@ -90,7 +90,7 @@
9090
"cheerio": "^1.0.0-rc.12",
9191
"fastify": "^3.29.0",
9292
"gitpkg": "^1.0.0-beta.2",
93-
"jest": "^28.1.3",
93+
"jest": "^29.7.0",
9494
"npm-run-all": "^4.1.5",
9595
"pino-pretty": "^4.8.0",
9696
"react": "0.0.0-experimental-4ead6b530",

packages/test-apps/simple-react/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const port = 3000 + parseInt(process.env.JEST_WORKER_ID!) - 1
2020
export const rootURL = `http://localhost:${port}`
2121

2222
beforeAll(async () => {
23-
const testPath = expect.getState().testPath
23+
const testPath = expect.getState().testPath!
2424
// eslint-disable-next-line @typescript-eslint/prefer-regexp-exec
2525
const testName = slash(testPath).match(/test-apps\/([\w-]+)\//)?.[1]
2626

packages/test-apps/simple-react/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
// ],
3232

3333
// Indicates which provider should be used to instrument code for coverage
34-
coverageProvider: 'v8',
34+
// coverageProvider: 'v8',
3535

3636
// A list of reporter names that Jest uses when writing coverage reports
3737
// coverageReporters: [

packages/test-apps/simple-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"@playwright/test": "^1.39.0",
2121
"@swc/core": "^1.3.95",
2222
"@swc/jest": "^0.2.29",
23-
"@types/jest": "^26.0.24",
23+
"@types/jest": "^29.5.6",
2424
"@types/node": "^18.11.9",
2525
"@types/react": "^17.0.43",
2626
"@types/react-dom": "^17.0.11",
2727
"html-validator": "^5.1.18",
28-
"jest-playwright-preset": "^2.0.0",
28+
"jest-playwright-preset": "^3.0.1",
2929
"typescript": "^5.2.2"
3030
}
3131
}

0 commit comments

Comments
 (0)