-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
32 lines (26 loc) · 1007 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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// Allows you to use a custom runner instead of Jest's default test runner
runner: 'jest-runner-mocha',
// A list of paths to modules that run some code to configure or set up the testing framework before each test
setupFilesAfterEnv: ['./test/transformGlobals.js'],
snapshotFormat: {
escapeString: true,
printBasicPrototype: true
},
// The test environment that will be used for testing
testEnvironment: 'node',
// The glob patterns Jest uses to detect test files
testMatch: [
'<rootDir>/test/**/*.[jt]s?(x)'
],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/test/fixtures',
'<rootDir>/test/_setup.js',
'<rootDir>/test/helpers/generators.js',
'<rootDir>/test/transformGlobals.js'
]
}