Skip to content

Commit c9a24db

Browse files
authoredFeb 3, 2021
docs: add missing override options for Jest config (#9473)
1 parent 0f6fc2b commit c9a24db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎docusaurus/docs/running-tests.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@ Note that tests run much slower with coverage so it is recommended to run it sep
184184
185185
### Configuration
186186
187-
The default Jest coverage configuration can be overridden by adding any of the following supported keys to a Jest config in your package.json.
187+
The [default configuration](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/scripts/utils/createJestConfig.js) that Create React App uses for Jest can be overridden by adding any of the following supported keys to a Jest config in your package.json.
188188
189189
Supported overrides:
190190
191191
- [`clearMocks`](https://jestjs.io/docs/en/configuration.html#clearmocks-boolean)
192192
- [`collectCoverageFrom`](https://jestjs.io/docs/en/configuration.html#collectcoveragefrom-array)
193+
- [`coveragePathIgnorePatterns`](https://jestjs.io/docs/en/configuration#coveragepathignorepatterns-arraystring)
193194
- [`coverageReporters`](https://jestjs.io/docs/en/configuration.html#coveragereporters-array-string)
194195
- [`coverageThreshold`](https://jestjs.io/docs/en/configuration.html#coveragethreshold-object)
195196
- [`displayName`](https://jestjs.io/docs/en/configuration.html#displayname-string-object)
@@ -199,7 +200,9 @@ Supported overrides:
199200
- [`moduleNameMapper`](https://jestjs.io/docs/en/configuration.html#modulenamemapper-object-string-string)
200201
- [`resetMocks`](https://jestjs.io/docs/en/configuration.html#resetmocks-boolean)
201202
- [`resetModules`](https://jestjs.io/docs/en/configuration.html#resetmodules-boolean)
203+
- [`restoreMocks`](https://jestjs.io/docs/en/configuration#restoremocks-boolean)
202204
- [`snapshotSerializers`](https://jestjs.io/docs/en/configuration.html#snapshotserializers-array-string)
205+
- [`testMatch`](https://jestjs.io/docs/en/configuration#testmatch-arraystring)
203206
- [`transform`](https://jestjs.io/docs/en/configuration.html#transform-object-string-pathtotransformer-pathtotransformer-object)
204207
- [`transformIgnorePatterns`](https://jestjs.io/docs/en/configuration.html#transformignorepatterns-array-string)
205208
- [`watchPathIgnorePatterns`](https://jestjs.io/docs/en/configuration.html#watchpathignorepatterns-array-string)

0 commit comments

Comments
 (0)
Please sign in to comment.