-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (28 loc) · 937 Bytes
/
jest.config.js
File metadata and controls
28 lines (28 loc) · 937 Bytes
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
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'node',
transform: {
'^.+\\.(j|t)sx?$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.json' }]
},
transformIgnorePatterns: ['<rootDir>/node_modules/(?!micro-aes-gcm/.*)'],
coveragePathIgnorePatterns: ['/node_modules/'],
testRegex: '(/tests?/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
modulePathIgnorePatterns: ['<rootDir>/e2e-tests'],
moduleNameMapper: {
'^@src/(.*)$': '<rootDir>/src/$1',
'^@content/sdk-types$': '<rootDir>/src/content/sdk-types',
'^@libs/types/(.*)$': '<rootDir>/src/libs/types/$1'
},
setupFilesAfterEnv: ['@testing-library/jest-dom'],
coverageReporters: ['json', 'text'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
},
testPathIgnorePatterns: ['e2e-tests/']
};