mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
Include all ts/tsx files in coverage
This commit is contained in:
@@ -22,5 +22,10 @@ module.exports = {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
};
|
||||
|
||||
@@ -22,5 +22,10 @@ module.exports = {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
};
|
||||
|
||||
@@ -22,5 +22,10 @@ module.exports = {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||||
const { pathsToModuleNameMapper } = require('ts-jest')
|
||||
const { compilerOptions } = require('./tsconfig')
|
||||
const {pathsToModuleNameMapper} = require('ts-jest')
|
||||
const {compilerOptions} = require('./tsconfig')
|
||||
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
|
||||
prefix: '<rootDir>/',
|
||||
}),
|
||||
testMatch: ['**/*.test.ts'],
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
|
||||
prefix: '<rootDir>/',
|
||||
}),
|
||||
testMatch: ['**/*.test.ts'],
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
}
|
||||
|
||||
@@ -22,5 +22,10 @@ module.exports = {
|
||||
'ts-jest': {
|
||||
tsconfig: '<rootDir>/tsconfig.json'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
collectCoverageFrom: [
|
||||
"src/**/*.{ts,tsx}",
|
||||
"!src/**/*.d.ts"
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user