-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.cjs
28 lines (28 loc) · 919 Bytes
/
jest.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest/presets/default-esm',
testTimeout: 10000,
testEnvironment: 'node',
verbose: true,
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
coveragePathIgnorePatterns: [
'<rootDir>/src/lib/schema-validator.ts',
'<rootDir>/src/lib/schema-validator-oop.ts',
'<rootDir>/src/lib/schema-validator-oop/',
],
setupFilesAfterEnv: ['<rootDir>/tests/test-setup.ts'],
transform: {},
extensionsToTreatAsEsm: ['.ts'],
globals: {
'ts-jest': {
useESM: true,
},
},
moduleFileExtensions: ['js', 'ts', 'mjs'],
moduleNameMapper: {
'#ansi-styles':
'<rootDir>/node_modules/zx/node_modules/chalk/source/vendor/ansi-styles/index.js',
'#supports-color':
'<rootDir>/node_modules/zx/node_modules/chalk/source/vendor/supports-color/index.js',
},
};