-
Notifications
You must be signed in to change notification settings - Fork 0
/
jestConfig.readme
23 lines (23 loc) · 951 Bytes
/
jestConfig.readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
A preset that is used as a base for Jest"s configuration
"preset": "ts-jest",
A list of paths to directories that Jest should use to search for files in
"roots": [
"<rootDir>/test/integration"
],
Automatically clear mock calls and instances between every test
"clearMocks": true,
Indicates whether the coverage information should be collected while executing the test
"collectCoverage": true,
An array of glob patterns indicating a set of files for which coverage information should be collected
"collectCoverageFrom": [
"source/**"
],
The directory where Jest should output its coverage files
"coverageDirectory": "test/integration/coverage",
The test environment that will be used for testing
"testEnvironment": "node",
A list of paths to modules that run some code to configure or set up
the testing framework before each test file in the suite is executed.
"setupFilesAfterEnv": [
"./test/integration/setup.ts"
]