-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathjest.config.js
51 lines (51 loc) · 1.34 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
module.exports = {
collectCoverageFrom: [
'public/js/**/*.js',
'server/**/*.js',
'src/**/*.js',
],
coverageReporters: [
'lcovonly',
'clover',
'text-summary',
],
projects: [
{
displayName: 'client',
testEnvironment: 'jsdom',
testRunner: 'jest-jasmine2',
testMatch: [
'<rootDir>/test/client/**/*.spec.js',
],
setupFilesAfterEnv: [
'<rootDir>/test/client/setup.js',
],
},
{
displayName: 'server',
testEnvironment: 'node',
testMatch: [
'<rootDir>/test/server/**/*.spec.js',
],
globalSetup: '<rootDir>/test/server/setup.js',
setupFilesAfterEnv: [
'<rootDir>/test/server/jest-custom-matchers.js',
],
},
{
displayName: 'cli',
testEnvironment: 'node',
testMatch: [
'<rootDir>/test/cli/**/*.spec.js',
],
globalSetup: '<rootDir>/test/cli/setup.js',
},
{
displayName: 'liquid-plugin',
testEnvironment: 'node',
testMatch: [
'<rootDir>/test/liquid-plugin/**/*.spec.js',
],
},
],
};