Skip to content

Commit cd9e626

Browse files
committed
hey, jest DOES supports conditions!
thanks @JoviDeCroock! (not sure what I did wrong before)
1 parent 7a0f707 commit cd9e626

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

integrationTests/dev-jest/jest.config.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
const jestConfig = {
2-
testEnvironment: 'node',
3-
42
testEnvironmentOptions: {
53
customExportConditions: ['development'],
64
},
7-
8-
transform: {
9-
'^.+\\.(t|j)sx?$': ['@swc/jest'],
10-
},
11-
12-
transformIgnorePatterns: [
13-
// Allow 'graphql' to be transformed, ignore all other node_modules.
14-
// This regex means: "match /node_modules/ unless it's followed by graphql/"
15-
'/node_modules/(?!graphql/)',
16-
// Keep Jest's default for .pnp.js files if using Yarn PnP
17-
'\\.pnp\\.[^\\/]+$',
18-
],
195
};
206

217
// eslint-disable-next-line no-restricted-exports, import/no-default-export
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "graphql-js development mode should work with Jest and SWC",
2+
"description": "graphql-js development mode should work with Jest",
33
"private": true,
44
"type": "module",
55
"scripts": {
@@ -9,8 +9,6 @@
99
"graphql": "file:../graphql.tgz"
1010
},
1111
"devDependencies": {
12-
"jest": "^29.7.0",
13-
"@swc/core": "^1.6.0",
14-
"@swc/jest": "^0.2.36"
12+
"jest": "^29.7.0"
1513
}
1614
}

0 commit comments

Comments
 (0)