File tree 2 files changed +9
-14
lines changed
2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change
1
+ const { pathsToModuleNameMapper } = require ( 'ts-jest' )
2
+ const { compilerOptions } = require ( './tsconfig.json' )
3
+
1
4
module . exports = {
2
5
preset : 'ts-jest' ,
3
6
testEnvironment : 'node' ,
4
7
passWithNoTests : true ,
5
8
snapshotSerializers : [ 'jest-serializer-path' ] ,
9
+ moduleNameMapper : pathsToModuleNameMapper ( compilerOptions . paths || { } ) ,
6
10
}
Original file line number Diff line number Diff line change 6
6
"forceConsistentCasingInFileNames" : true ,
7
7
"isolatedModules" : true ,
8
8
"experimentalDecorators" : true ,
9
- "lib" : [
10
- " esnext"
11
- ],
9
+ "lib" : [" esnext" ],
12
10
"module" : " esnext" ,
13
11
"moduleResolution" : " node" ,
14
12
"noEmit" : true ,
19
17
"declaration" : true ,
20
18
"declarationDir" : " ./dist" ,
21
19
"outDir" : " ./dist" ,
22
- "typeRoots" : [
23
- " ./node_modules/@types"
24
- ]
20
+ "typeRoots" : [" ./node_modules/@types" ]
25
21
},
26
- "exclude" : [
27
- " ./node_modules" ,
28
- " ./dist" ,
29
- ],
30
- "include" : [
31
- " src"
32
- ]
33
- }
22
+ "exclude" : [" ./node_modules" , " ./dist" ],
23
+ "include" : [" src" ]
24
+ }
You can’t perform that action at this time.
0 commit comments