-
Notifications
You must be signed in to change notification settings - Fork 5
/
jest.config.js
39 lines (39 loc) · 1.27 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
module.exports = {
rootDir: ".",
moduleNameMapper: {
"\\.(svg)$": "<rootDir>/__mocks__/svgMock.js"
},
collectCoverage: true,
collectCoverageFrom: [
"<rootDir>/src/App/**/*.{js,jsx}",
"<rootDir>/src/scripts/**/*.{js,jsx}"
],
coverageDirectory: "coverage",
coverageReporters: [
"json",
"lcov",
"text-summary"
],
setupFiles: [
"<rootDir>/jest.setup.js"
],
snapshotSerializers: [
"enzyme-to-json/serializer"
],
testMatch: [
"<rootDir>/src/App/**/*.test.js",
"<rootDir>/src/scripts/**/*.test.js"
],
testPathIgnorePatterns: [
"\\.spec\\.js",
// The snapshot generated from the following files simply destroyed agents, lets just skip the entire thing [THN]
"<rootDir>/src/App/docutils/ComponentPreview/",
// TODO test fails now that jest has config on root level for some reason
"<rootDir>/src/App/docutils/JavascriptDocs/",
// TODO test fails now that jest has config on root level for some reason
"<rootDir>/src/scripts/main/datepicker/",
// TODO test fails now that jest has config on root level for some reason
"<rootDir>/src/scripts/main/topbar/",
"<rootDir>/dist/"
]
};