-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (28 loc) · 978 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
34
35
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: [
"/node_modules/"
],
// A set of global variables that need to be available in all test environments
globals: {
moj: {
Modules: {}
}
},
// A list of paths to directories that Jest should use to search for files in
roots: ["/src"],
// A list of paths to modules that run some code to configure or set up the testing framework before each test
setupFilesAfterEnv: [
"/src/jest.setup.js"
],
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: [
"/node_modules/",
"\\.test\\.js"
],
"testEnvironment": "jsdom",
};