mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-23 18:36:02 -05:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
29 lines
660 B
JavaScript
29 lines
660 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
|
|
rootDir: '.',
|
|
testMatch: ['<rootDir>/tests/**/*.test.ts', '<rootDir>/tests/**/*.spec.ts'],
|
|
|
|
moduleNameMapper: {
|
|
'^api/(.*)$': '<rootDir>/src/$1',
|
|
'^shared/(.*)$': '<rootDir>/../shared/src/$1',
|
|
'^common/(.*)$': '<rootDir>/../../common/src/$1',
|
|
'^email/(.*)$': '<rootDir>/../email/emails/$1',
|
|
},
|
|
|
|
moduleFileExtensions: ['tsx', 'ts', 'js', 'json'],
|
|
clearMocks: true,
|
|
|
|
transform: {
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: '<rootDir>/tsconfig.test.json',
|
|
},
|
|
],
|
|
},
|
|
|
|
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
|
|
}
|