-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.ts
40 lines (40 loc) · 1.02 KB
/
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
37
38
39
40
export default {
displayName: 'test',
roots: ['<rootDir>/src'],
testEnvironment: 'jsdom',
resolver: '<rootDir>/config/resolver.cjs',
setupFiles:[
'<rootDir>/config/setup.cjs'
],
transform: {
'^.+\\.[tj]s[x]?$': ['ts-jest', {
useESM: true,
diagnostics: {
ignoreCodes: [1343]
},
astTransformers: {
before: [
{
path: 'node_modules/ts-jest-mock-import-meta',
options: { metaObjectReplacement: { env: { PROD: false, DEV: false } } }
}
],
}
}],
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|)$': 'jest-transform-stub',
},
coveragePathIgnorePatterns: [
'/index.ts',
'/init-redux.ts',
'/init-env.ts',
'/src/assets/*',
'/src/infrastructure/builders/*',
'/src/infrastructure/redux-helpers/*',
'/src/infrastructure/test-helpers/*',
'/src/infrastructure/fetch.ts',
'/src/infrastructure/firebase.ts',
],
moduleNameMapper: {
'\\.(css|scss)$': 'identity-obj-proxy',
},
}