forked from multiprocessio/datastation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (30 loc) · 790 Bytes
/
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
module.exports = {
// Only on linux do all tests run
coverageThreshold:
process.platform === 'linux'
? {
global: {
statements: 67,
branches: 55,
functions: 55,
lines: 68,
},
}
: 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'],
testURL: 'http://localhost/',
testEnvironment: 'node',
collectCoverageFrom: [
'ui/**/*.ts',
'ui/**/*.tsx',
'shared/**/*.ts',
'desktop/**/*.ts',
'server/**/*.ts',
'server/**/*.tsx',
],
modulePathIgnorePatterns: ['<rootDir>/releases/', '<rootDir>/build/'],
};