forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
32 lines (32 loc) · 874 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
module.exports = {
roots: ['<rootDir>/app/src/', '<rootDir>/app/test/'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testMatch: ['**/unit/**/*-test.ts{,x}'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFiles: [
'<rootDir>/app/test/globals.ts',
'<rootDir>/app/test/unit-test-env.ts',
],
setupTestFrameworkScriptFile: '<rootDir>/app/test/setup-test-framework.ts',
collectCoverageFrom: [
'app/src/**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/*.d.*',
// not focused on testing these areas currently
'!app/src/ask-pass/**/*',
'!app/src/cli/**/*',
'!app/src/crash/**/*',
'!app/src/highlighter/**/*',
// ignore index files
'!**/index.ts',
],
coverageReporters: ['text-summary', 'json'],
globals: {
'ts-jest': {
useBabelrc: true,
},
},
}