From 569960090afc686cbe7b944b5f7eaf5de61b02fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BCschel?= <13087421+tobiasbueschel@users.noreply.github.com> Date: Thu, 4 Feb 2021 02:09:44 +0800 Subject: [PATCH] docs: add missing override options for Jest config (#9473) --- docusaurus/docs/running-tests.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docusaurus/docs/running-tests.md b/docusaurus/docs/running-tests.md index ffbb0f70a74..4090a1fcd6f 100644 --- a/docusaurus/docs/running-tests.md +++ b/docusaurus/docs/running-tests.md @@ -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) @@ -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)