mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
17 lines
459 B
JavaScript
17 lines
459 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
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'],
|
|
collectCoverageFrom: [
|
|
"src/**/*.{ts,tsx}",
|
|
"!src/**/*.d.ts"
|
|
],
|
|
}
|