-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathjest.config.js
34 lines (27 loc) · 984 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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
import path from 'path';
export default {
// Automatically clear mock calls, instances, contexts and results before every test
clearMocks: true,
// The root directory that Jest should scan for tests and modules within.
// rootDir: "build",
// A list of paths to directories that Jest should use to search for files in.
// roots: ["src", "e2e"],
// A list of paths to modules that run some code to configure or set up the testing framework before each test
setupFilesAfterEnv: [
path.join(
process.env.TEST_SRCDIR,
process.env.TEST_WORKSPACE,
'jest.setup.js'
),
],
// The path to a module that can resolve test<->snapshot path.
// snapshotResolver: "./jest-snapshot-resolver.js",
// A map from regular expressions to paths to transformers
transform: {
'\\.js$': 'babel-jest',
},
};