forked from tinovyatkin/pass-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.ts
36 lines (34 loc) · 932 Bytes
/
jest.config.ts
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
29
30
31
32
33
34
35
36
import type { JestConfigWithTsJest } from 'ts-jest';
//import { jsWithBabelESM as tsjPreset } from 'ts-jest/presets';
const config: JestConfigWithTsJest = {
//preset: '@repobuddy/jest/presets/ts',
collectCoverage: true,
verbose: true,
coverageReporters: ['text', 'json', 'cobertura', 'lcov'],
testEnvironment: 'node',
setupFilesAfterEnv: ['jest-extended'],
resolver: '@repobuddy/jest/resolver',
moduleNameMapper: {
'(.+)\\.js': '$1',
},
transformIgnorePatterns: ['<rootDir>/node_modules'],
watchPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/.sonarlint/',
'<rootDir>/dist/',
'<rootDir>/coverage/',
'<rootDir>/.vscode/',
],
globals: {
'ts-jest': {
useESM: true,
diagnostics: {
ignoreCodes: [
2571, 2532, 2488, 2322, 2339, 2345, 6031, 6133, 7006, 7053, 18003,
18048,
],
},
},
},
};
export default config;