Skip to content

Commit

Permalink
docs: add missing override options for Jest config (facebook#9473)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasbueschel authored and abhiisheek committed May 24, 2023
1 parent fec7cc8 commit 5699600
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docusaurus/docs/running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@ Note that tests run much slower with coverage so it is recommended to run it sep
### Configuration
The default Jest coverage configuration can be overridden by adding any of the following supported keys to a Jest config in your package.json.
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.
Supported overrides:
- [`clearMocks`](https://jestjs.io/docs/en/configuration.html#clearmocks-boolean)
- [`collectCoverageFrom`](https://jestjs.io/docs/en/configuration.html#collectcoveragefrom-array)
- [`coveragePathIgnorePatterns`](https://jestjs.io/docs/en/configuration#coveragepathignorepatterns-arraystring)
- [`coverageReporters`](https://jestjs.io/docs/en/configuration.html#coveragereporters-array-string)
- [`coverageThreshold`](https://jestjs.io/docs/en/configuration.html#coveragethreshold-object)
- [`displayName`](https://jestjs.io/docs/en/configuration.html#displayname-string-object)
Expand All @@ -199,7 +200,9 @@ Supported overrides:
- [`moduleNameMapper`](https://jestjs.io/docs/en/configuration.html#modulenamemapper-object-string-string)
- [`resetMocks`](https://jestjs.io/docs/en/configuration.html#resetmocks-boolean)
- [`resetModules`](https://jestjs.io/docs/en/configuration.html#resetmodules-boolean)
- [`restoreMocks`](https://jestjs.io/docs/en/configuration#restoremocks-boolean)
- [`snapshotSerializers`](https://jestjs.io/docs/en/configuration.html#snapshotserializers-array-string)
- [`testMatch`](https://jestjs.io/docs/en/configuration#testmatch-arraystring)
- [`transform`](https://jestjs.io/docs/en/configuration.html#transform-object-string-pathtotransformer-pathtotransformer-object)
- [`transformIgnorePatterns`](https://jestjs.io/docs/en/configuration.html#transformignorepatterns-array-string)
- [`watchPathIgnorePatterns`](https://jestjs.io/docs/en/configuration.html#watchpathignorepatterns-array-string)
Expand Down

0 comments on commit 5699600

Please sign in to comment.