-
Notifications
You must be signed in to change notification settings - Fork 542
/
jest.config.js
38 lines (36 loc) · 1.02 KB
/
jest.config.js
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
const deepmerge = require('deepmerge');
const baseConfig = require('../../jest.config.base');
module.exports = deepmerge(baseConfig, {
coverageThreshold: {
global: {
branches: 88.74,
functions: 97.6,
lines: 97.1,
statements: 97.1,
},
},
projects: [
{
moduleNameMapper: baseConfig.moduleNameMapper,
preset: 'ts-jest',
testMatch: ['<rootDir>/src/services/iframe/*.test.ts'],
testEnvironment: '<rootDir>/jest.environment.js',
testEnvironmentOptions: {
resources: 'usable',
runScripts: 'dangerously',
customExportConditions: ['node', 'node-addons'],
},
},
{
moduleNameMapper: baseConfig.moduleNameMapper,
preset: 'ts-jest',
testPathIgnorePatterns: ['<rootDir>/src/services/iframe/*'],
testEnvironment: '<rootDir>/jest.environment.js',
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons'],
},
testRegex: ['\\.test\\.(ts|js)$'],
},
],
testTimeout: 5000,
});