forked from Inist-CNRS/lodex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
67 lines (67 loc) · 2.12 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
projects: [
{
displayName: 'frontend',
rootDir: `${__dirname}/src/app`,
setupFiles: [`${__dirname}/src/app/setupTest.js`],
testMatch: ['/**/*.spec.js'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
},
{
displayName: 'api',
rootDir: `${__dirname}/src/api`,
testEnvironment: 'node',
testPathIgnorePatterns: ['e2e'],
testMatch: ['/**/*.spec.js'],
},
{
displayName: 'common',
rootDir: `${__dirname}/src/common`,
testMatch: ['/**/*.spec.js'],
},
{
displayName: 'transformers',
rootDir: `${__dirname}/packages/transformers`,
testMatch: ['/**/*.spec.js'],
},
{
displayName: 'ezsLodex',
rootDir: `${__dirname}/packages/ezsLodex`,
modulePaths: ['<rootDir>/packages/ezsLodex/node_modules'],
moduleDirectories: [
`<rootDir>/packages/ezsLodex/node_modules`,
'node_modules',
],
moduleNameMapper: {},
testMatch: [
'**/test?(s)/**/*.[jt]s?(x)',
'**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec|test).[tj]s?(x)',
],
testEnvironment: 'node',
testPathIgnorePatterns: [
'/node_modules/',
'locals.js',
'testOne.js',
'testAll.js',
'/data/',
],
collectCoverage: true,
coveragePathIgnorePatterns: [
'/node_modules/',
'/test/',
'/lib/',
'/lodex/src/reducers/',
],
coverageReporters: ['lcov', 'text-summary'],
preset: '@shelf/jest-mongodb',
transformIgnorePatterns: [
'<rootDir>/node_modules/',
'/node_modules/(?!quick-lru)',
],
testTimeout: 8000,
},
],
};