forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
37 lines (34 loc) · 879 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
31
32
33
34
35
36
37
const config = require('@gravitational/build/jest/config');
process.env.TZ = 'UTC';
const esModules = [
'strip-ansi',
'ansi-regex',
'd3-color',
'd3-scale',
'd3-interpolate',
'd3-array',
'd3-format',
'd3-time',
'd3-shape',
'd3-path',
'internmap',
].join('|');
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
...config,
globals: {
electron: {},
},
collectCoverageFrom: [
// comment out until shared directory is finished testing
// '**/packages/design/src/**/*.jsx',
'**/packages/shared/components/**/*.jsx',
],
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
coverageReporters: ['text-summary', 'lcov'],
testPathIgnorePatterns: ['e2e'],
setupFilesAfterEnv: [
'<rootDir>/web/packages/shared/setupTests.tsx',
'<rootDir>/web/packages/build/jest/customMatchers.ts',
],
};