diff --git a/CHANGELOG.md b/CHANGELOG.md index a6c4c536b726..1abe9661f06d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - `[*]` Update all legacy links to jestjs.io ([#6622](https://github.com/facebook/jest/pull/6622)) - `[docs]` Add docs for 23.1, 23.2, and 23.3 ([#6623](https://github.com/facebook/jest/pull/6623)) - `[website]` Only test/deploy website if relevant files are changed ([#6626](https://github.com/facebook/jest/pull/6626)) +- `[docs]` Describe behavior of `resetModules` option when set to `false` ([#6636](https://github.com/facebook/jest/pull/6636)) ## 23.2.0 diff --git a/docs/Configuration.md b/docs/Configuration.md index 7266c12c6791..5ea2f8292335 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -523,7 +523,7 @@ Automatically reset mock state between every test. Equivalent to calling `jest.r Default: `false` -If enabled, the module registry for every test file will be reset before running each individual test. This is useful to isolate modules for every test so that local module state doesn't conflict between tests. This can be done programmatically using [`jest.resetModules()`](#jest-resetmodules). +By default, each test file gets its own independent module registry. Enabling `resetModules` goes a step further and resets the module registry before running each individual test. This is useful to isolate modules for every test so that local module state doesn't conflict between tests. This can be done programmatically using [`jest.resetModules()`](#jest-resetmodules). ### `resolver` [string]