-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
40 lines (30 loc) · 1.1 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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
preset: 'ts-jest',
displayName: {
name: 'LOG-FILESIZE',
color: 'blue'
},
setupFilesAfterEnv: ['./jest.setup.js'],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/__tests__/fixtures/',
'<rootDir>/__tests__/support/'
],
// Automatically clear mock calls and instances between every test
clearMocks: true,
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
// Indicates which provider should be used to instrument code for coverage
coverageProvider: 'v8',
collectCoverage: true,
// The test environment that will be used for testing
testEnvironment: 'node',
// Indicates whether each individual test should be reported during the run
verbose: true
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
// watchPathIgnorePatterns: [],
// Whether to use watchman for file crawling
// watchman: true,
};