Skip to content

Commit 3b428b9

Browse files
chore(deps): update jest monorepo to v29 (major) (#2112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Josh <[email protected]>
1 parent 2acce74 commit 3b428b9

File tree

9 files changed

+1228
-2231
lines changed

9 files changed

+1228
-2231
lines changed

demo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@react-three/fiber": "^8.11.9",
1717
"@stitches/react": "^1.2.8",
1818
"@use-gesture/react": "^10.2.24",
19+
"@vitejs/plugin-react-refresh": "^1.3.6",
1920
"easing-coordinates": "2.0.2",
2021
"leva": "0.9.34",
2122
"lodash-move": "1.1.1",

docs/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@supabase/supabase-js": "^2.10.0",
3131
"@use-gesture/react": "^10.2.24",
3232
"@vercel/node": "^2.9.10",
33+
"gray-matter": "^4.0.3",
3334
"hast-util-to-html": "7.1.3",
3435
"jotai": "^2.0.3",
3536
"parse-numeric-range": "^1.3.0",
@@ -48,6 +49,11 @@
4849
"unist-util-visit": "2.0.3",
4950
"zod": "^3.21.4"
5051
},
52+
"devDependencies": {
53+
"chokidar": "^3.5.3",
54+
"concurrently": "^7.6.0",
55+
"ts-node": "^10.9.1"
56+
},
5157
"engines": {
5258
"node": ">=v18.14.2"
5359
},

jest.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path')
22

3+
/** @type {import('jest').Config} */
34
module.exports = {
4-
preset: 'ts-jest',
55
setupFilesAfterEnv: [path.join(__dirname, 'packages/core/test/setup.ts')],
66
testEnvironment: 'jsdom',
77
testPathIgnorePatterns: [
@@ -27,5 +27,8 @@ module.exports = {
2727
},
2828
moduleFileExtensions: ['js', 'ts', 'tsx'],
2929
coverageReporters: ['json', 'html', 'text'],
30-
timers: 'fake',
30+
fakeTimers: { enableGlobally: true },
31+
transform: {
32+
'^.+\\.(t|j)sx?$': '@swc/jest',
33+
},
3134
}

package.json

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@
6262
"@changesets/cli": "^2.26.0",
6363
"@commitlint/cli": "^17.4.4",
6464
"@commitlint/config-conventional": "^17.4.4",
65-
"@preconstruct/cli": "^2.3.0",
6665
"@react-three/fiber": "^8.11.9",
6766
"@remix-run/dev": "patch:@remix-run/dev@npm%3A1.12.0#./.yarn/patches/@remix-run-dev-npm-1.12.0-4cb56cd8f7.patch",
68-
"@remix-run/serve": "^1.14.0",
69-
"@studiocompanion/scripts": "^1.2.2",
67+
"@remix-run/serve": "1.12.0",
68+
"@swc/core": "^1.3.41",
69+
"@swc/jest": "^0.2.24",
7070
"@testing-library/cypress": "^8.0.7",
7171
"@testing-library/jest-dom": "^5.16.5",
7272
"@testing-library/react": "^14.0.0",
7373
"@types/fs-extra": "^11.0.1",
74-
"@types/jest": "^27.5.2",
74+
"@types/jest": "^29.5.0",
7575
"@types/lodash.clamp": "^4.0.7",
7676
"@types/lodash.shuffle": "^4.2.7",
7777
"@types/mdx-js__react": "^1.5.5",
@@ -81,18 +81,14 @@
8181
"@types/react-native": "^0.71.3",
8282
"@types/styled-components": "^5.1.26",
8383
"@types/three": "^0.149.0",
84-
"@vitejs/plugin-react-refresh": "^1.3.6",
85-
"chokidar": "^3.5.3",
86-
"concurrently": "^7.6.0",
8784
"cypress": "^9.7.0",
8885
"cypress-image-snapshot": "^4.0.1",
8986
"flush-microtasks": "^1.0.1",
90-
"gray-matter": "^4.0.3",
9187
"husky": "^8.0.3",
92-
"jest": "^27.5.1",
88+
"jest": "^29.5.0",
89+
"jest-environment-jsdom": "^29.5.0",
9390
"konva": "^8.4.2",
9491
"mock-raf": "npm:@react-spring/[email protected]",
95-
"postinstall-postinstall": "^2.1.0",
9692
"prettier": "^2.8.4",
9793
"pretty-quick": "^3.1.3",
9894
"react": "^18.2.0",
@@ -103,8 +99,6 @@
10399
"spec.ts": "^1.1.3",
104100
"start-server-and-test": "^2.0.0",
105101
"three": "^0.150.1",
106-
"ts-jest": "^27.1.5",
107-
"ts-node": "^10.9.1",
108102
"tsup": "^6.6.3",
109103
"turbo": "^1.8.3",
110104
"typescript": "4.9.5",
@@ -118,8 +112,5 @@
118112
"type": "opencollective",
119113
"url": "https://opencollective.com/react-spring"
120114
},
121-
"packageManager": "[email protected]",
122-
"resolutions": {
123-
"@remix-run/dev@^1.14.0": "patch:@remix-run/dev@npm%3A1.14.0#./.yarn/patches/@remix-run-dev-npm-1.14.0-33b55fa3ee.patch"
124-
}
115+
"packageManager": "[email protected]"
125116
}

0 commit comments

Comments
 (0)