1 | module.exports = {
|
2 | rootDir: process.cwd(),
|
3 | testEnvironment: 'node',
|
4 | transform: {
|
5 | '.(ts|tsx)': 'ts-jest',
|
6 | },
|
7 | // don't include the __tests__ folders in the templates
|
8 | testMatch: ['<rootDir>/src/**/__tests__/*.(ts|js)?(x)'],
|
9 | moduleFileExtensions: ['ts', 'tsx', 'js'],
|
10 | coveragePathIgnorePatterns: ['/node_modules/', '/__tests__/', '/__stories__/', '__mocks__/', 'index.ts', 'types.ts'],
|
11 | collectCoverageFrom: ['src/**/*.{ts,tsx}'],
|
12 | globals: {
|
13 | 'ts-jest': {
|
14 | diagnostics: {
|
15 | ignoreCodes: [151001],
|
16 | },
|
17 | },
|
18 | },
|
19 | };
|