File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed
packages/node-integration-tests Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1- const config = {
2- transform : {
3- '^.+\\.ts$' : 'ts-jest' ,
4- } ,
5- testEnvironment : 'node' ,
1+ const baseConfig = require ( '../../jest.config.js' ) ;
2+
3+ module . exports = {
4+ ...baseConfig ,
65 testMatch : [ '**/test.ts' ] ,
7- moduleFileExtensions : [ 'js' , 'ts' ] ,
86} ;
9-
10- module . exports = config ;
Original file line number Diff line number Diff line change 11{
22 "extends" : " ../../tsconfig.json" ,
3+
4+ "include" : [" **/*.ts" ],
5+
36 "compilerOptions" : {
7+ // package-specific options
48 "esModuleInterop" : true ,
5- "types" : [" jest" , " node" ]
6- },
7- "include" : [" **/*.ts" , " jest.config.js" ],
8- "exclude" : [" node_modules" ]
9+ "types" : [" node" ]
10+ }
911}
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+
4+ "include" : [" **/*.ts" ],
5+
6+ "compilerOptions" : {
7+ // should include all types from `./tsconfig.json` plus types for all test frameworks used
8+ "types" : [" node" , " jest" ]
9+
10+ // other package-specific, test-specific options
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments