forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
33 lines (33 loc) · 935 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
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',
],
reporters: ['default', 'jest-junit'],
coverageReporters: ['text-summary', 'json', 'html', 'cobertura'],
globals: {
'ts-jest': {
useBabelrc: true,
},
},
}