mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-13 09:00:30 +08:00
feat: add additional Jest keys to whitelist (#7832)
This commit is contained in:
@@ -276,9 +276,11 @@ The default Jest coverage configuration can be overridden by adding any of the f
|
||||
|
||||
Supported overrides:
|
||||
|
||||
- [`clearMocks`](https://jestjs.io/docs/en/configuration.html#clearmocks-boolean)
|
||||
- [`collectCoverageFrom`](https://jestjs.io/docs/en/configuration.html#collectcoveragefrom-array)
|
||||
- [`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)
|
||||
- [`extraGlobals`](https://jestjs.io/docs/en/configuration.html#extraglobals-array-string)
|
||||
- [`globalSetup`](https://jestjs.io/docs/en/configuration.html#globalsetup-string)
|
||||
- [`globalTeardown`](https://jestjs.io/docs/en/configuration.html#globalteardown-string)
|
||||
|
||||
@@ -71,10 +71,12 @@ module.exports = (resolve, rootDir, isEjecting) => {
|
||||
}
|
||||
const overrides = Object.assign({}, require(paths.appPackageJson).jest);
|
||||
const supportedKeys = [
|
||||
'clearMocks',
|
||||
'collectCoverageFrom',
|
||||
'coveragePathIgnorePatterns',
|
||||
'coverageReporters',
|
||||
'coverageThreshold',
|
||||
'coveragePathIgnorePatterns',
|
||||
'displayName',
|
||||
'extraGlobals',
|
||||
'globalSetup',
|
||||
'globalTeardown',
|
||||
|
||||
Reference in New Issue
Block a user