File tree Expand file tree Collapse file tree 5 files changed +36
-12
lines changed
Expand file tree Collapse file tree 5 files changed +36
-12
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,10 @@ module.exports = {
2222 'ts-jest' : {
2323 tsconfig : '<rootDir>/tsconfig.json'
2424 }
25- }
25+ } ,
26+
27+ collectCoverageFrom : [
28+ "src/**/*.{ts,tsx}" ,
29+ "!src/**/*.d.ts"
30+ ] ,
2631} ;
Original file line number Diff line number Diff line change @@ -22,5 +22,10 @@ module.exports = {
2222 'ts-jest' : {
2323 tsconfig : '<rootDir>/tsconfig.json'
2424 }
25- }
25+ } ,
26+
27+ collectCoverageFrom : [
28+ "src/**/*.{ts,tsx}" ,
29+ "!src/**/*.d.ts"
30+ ] ,
2631} ;
Original file line number Diff line number Diff line change @@ -22,5 +22,10 @@ module.exports = {
2222 'ts-jest' : {
2323 tsconfig : '<rootDir>/tsconfig.json'
2424 }
25- }
25+ } ,
26+
27+ collectCoverageFrom : [
28+ "src/**/*.{ts,tsx}" ,
29+ "!src/**/*.d.ts"
30+ ] ,
2631} ;
Original file line number Diff line number Diff line change 11/** @type {import('ts-jest').JestConfigWithTsJest } */
2- const { pathsToModuleNameMapper } = require ( 'ts-jest' )
3- const { compilerOptions } = require ( './tsconfig' )
2+ const { pathsToModuleNameMapper} = require ( 'ts-jest' )
3+ const { compilerOptions} = require ( './tsconfig' )
44
55module . exports = {
6- preset : 'ts-jest' ,
7- testEnvironment : 'node' ,
8- moduleNameMapper : pathsToModuleNameMapper ( compilerOptions . paths , {
9- prefix : '<rootDir>/' ,
10- } ) ,
11- testMatch : [ '**/*.test.ts' ] ,
6+ preset : 'ts-jest' ,
7+ testEnvironment : 'node' ,
8+ moduleNameMapper : pathsToModuleNameMapper ( compilerOptions . paths , {
9+ prefix : '<rootDir>/' ,
10+ } ) ,
11+ testMatch : [ '**/*.test.ts' ] ,
12+ collectCoverageFrom : [
13+ "src/**/*.{ts,tsx}" ,
14+ "!src/**/*.d.ts"
15+ ] ,
1216}
Original file line number Diff line number Diff line change @@ -22,5 +22,10 @@ module.exports = {
2222 'ts-jest' : {
2323 tsconfig : '<rootDir>/tsconfig.json'
2424 }
25- }
25+ } ,
26+
27+ collectCoverageFrom : [
28+ "src/**/*.{ts,tsx}" ,
29+ "!src/**/*.d.ts"
30+ ] ,
2631} ;
You can’t perform that action at this time.
0 commit comments