-
Notifications
You must be signed in to change notification settings - Fork 112
/
jest.config.js
41 lines (41 loc) · 1.06 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
39
40
41
module.exports = {
// Only on linux do all tests run
coverageThreshold:
process.platform === 'linux'
? process.argv.includes('integration/credential_database.test.js')
? {
global: {
statements: 15,
branches: 13,
lines: 15,
functions: 9,
},
}
: {
global: {
statements: 54,
branches: 43,
functions: 37,
lines: 55,
},
}
: undefined,
preset: 'ts-jest/presets/js-with-ts',
transformIgnorePatterns: [
'node_modules/(?!react-syntax-highlighter|refractor|node-fetch|fetch-blob)',
],
setupFiles: ['./shared/polyfill.ts', './testsetup.js'],
testEnvironment: 'node',
testEnvironmentOptions: {
url: 'http://localhost/',
},
collectCoverageFrom: [
'ui/**/*.ts',
'ui/**/*.tsx',
'shared/**/*.ts',
'desktop/**/*.ts',
'server/**/*.ts',
'server/**/*.tsx',
],
modulePathIgnorePatterns: ['<rootDir>/releases/', '<rootDir>/build/', 'ee/'],
};