-
Notifications
You must be signed in to change notification settings - Fork 196
/
jest.config.js
52 lines (52 loc) · 1.3 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
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
verbose: false,
testMatch: [
'**/test/**/*test*.js',
'**/*test*.js',
'!**/mocha/**',
'!**/playground/**',
'!**/*test-helper*',
'!**/*anti-pattern*', // Uncomment this only when you want to inspect the consequences of anti-patterns
'!**/*performance*', //Uncomment this only when you want to inspect the performance of tests
],
collectCoverage: false,
coverageReporters: ['text-summary', 'lcov'],
collectCoverageFrom: ['**/*.js', '!**/node_modules/**', '!**/test/**'],
forceExit: true,
testEnvironment: 'node',
notify: true,
globalSetup: './example-application/test/global-setup.js',
globalTeardown: './example-application/test/global-teardown.js',
notifyMode: 'change',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
[
'jest-watch-repeat',
{
key: 'r',
prompt: 'repeat test runs.',
},
],
[
'jest-watch-suspend',
{
key: 's',
prompt: 'suspend watch mode',
},
],
'jest-watch-master',
[
'jest-watch-toggle-config',
{
setting: 'verbose',
},
],
[
'jest-watch-toggle-config',
{
setting: 'collectCoverage',
},
],
],
};