File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed
integrationTests/dev-jest Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 11const 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
Original file line number Diff line number Diff line change 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" : {
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}
You can’t perform that action at this time.
0 commit comments