Skip to content

Commit

Permalink
Upgrade jest
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Oct 30, 2023
1 parent 33b48eb commit 58e6cb6
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 460 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"expect-playwright": "^0.8.0",
"fs-extra": "^11.1.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"playwright-chromium": "^1.39.0",
"prettier": "^2.8.8",
"prettier-plugin-organize-imports": "^3.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify-renderer/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
// ],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: 'v8',
// coverageProvider: 'v8',

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
Expand Down
4 changes: 2 additions & 2 deletions packages/fastify-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@swc/core": "^1.3.95",
"@swc/jest": "^0.2.29",
"@types/connect": "^3.4.35",
"@types/jest": "^26.0.24",
"@types/jest": "^29.5.6",
"@types/node": "^18.11.9",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.11",
Expand All @@ -90,7 +90,7 @@
"cheerio": "^1.0.0-rc.12",
"fastify": "^3.29.0",
"gitpkg": "^1.0.0-beta.2",
"jest": "^28.1.3",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"pino-pretty": "^4.8.0",
"react": "0.0.0-experimental-4ead6b530",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-apps/simple-react/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const port = 3000 + parseInt(process.env.JEST_WORKER_ID!) - 1
export const rootURL = `http://localhost:${port}`

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

Expand Down
2 changes: 1 addition & 1 deletion packages/test-apps/simple-react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
// ],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: 'v8',
// coverageProvider: 'v8',

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
Expand Down
4 changes: 2 additions & 2 deletions packages/test-apps/simple-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"@playwright/test": "^1.39.0",
"@swc/core": "^1.3.95",
"@swc/jest": "^0.2.29",
"@types/jest": "^26.0.24",
"@types/jest": "^29.5.6",
"@types/node": "^18.11.9",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.11",
"html-validator": "^5.1.18",
"jest-playwright-preset": "^2.0.0",
"jest-playwright-preset": "^3.0.1",
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 58e6cb6

Please sign in to comment.