Skip to content

Commit cee2658

Browse files
authored
Merge pull request #12080 from adamalston/12079-fix-jest-links
docs: update jest links
2 parents f0855c3 + e076dc5 commit cee2658

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docusaurus/docs/running-tests.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ it('sums numbers', () => {
6060
});
6161
```
6262

63-
All `expect()` matchers supported by Jest are [extensively documented here](https://jestjs.io/docs/en/expect.html#content).
63+
All `expect()` matchers supported by Jest are [extensively documented here](https://jestjs.io/docs/expect).
6464

65-
You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](https://jestjs.io/docs/en/expect.html#tohavebeencalled) to create “spies” or mock functions.
65+
You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](https://jestjs.io/docs/expect#tohavebeencalled) to create “spies” or mock functions.
6666

6767
## Testing Components
6868

@@ -188,24 +188,24 @@ The [default configuration](https://github.com/facebook/create-react-app/blob/ma
188188
189189
Supported overrides:
190190
191-
- [`clearMocks`](https://jestjs.io/docs/en/configuration.html#clearmocks-boolean)
192-
- [`collectCoverageFrom`](https://jestjs.io/docs/en/configuration.html#collectcoveragefrom-array)
193-
- [`coveragePathIgnorePatterns`](https://jestjs.io/docs/en/configuration#coveragepathignorepatterns-arraystring)
194-
- [`coverageReporters`](https://jestjs.io/docs/en/configuration.html#coveragereporters-array-string)
195-
- [`coverageThreshold`](https://jestjs.io/docs/en/configuration.html#coveragethreshold-object)
196-
- [`displayName`](https://jestjs.io/docs/en/configuration.html#displayname-string-object)
197-
- [`extraGlobals`](https://jestjs.io/docs/en/configuration.html#extraglobals-array-string)
198-
- [`globalSetup`](https://jestjs.io/docs/en/configuration.html#globalsetup-string)
199-
- [`globalTeardown`](https://jestjs.io/docs/en/configuration.html#globalteardown-string)
200-
- [`moduleNameMapper`](https://jestjs.io/docs/en/configuration.html#modulenamemapper-object-string-string)
201-
- [`resetMocks`](https://jestjs.io/docs/en/configuration.html#resetmocks-boolean)
202-
- [`resetModules`](https://jestjs.io/docs/en/configuration.html#resetmodules-boolean)
203-
- [`restoreMocks`](https://jestjs.io/docs/en/configuration#restoremocks-boolean)
204-
- [`snapshotSerializers`](https://jestjs.io/docs/en/configuration.html#snapshotserializers-array-string)
205-
- [`testMatch`](https://jestjs.io/docs/en/configuration#testmatch-arraystring)
206-
- [`transform`](https://jestjs.io/docs/en/configuration.html#transform-object-string-pathtotransformer-pathtotransformer-object)
207-
- [`transformIgnorePatterns`](https://jestjs.io/docs/en/configuration.html#transformignorepatterns-array-string)
208-
- [`watchPathIgnorePatterns`](https://jestjs.io/docs/en/configuration.html#watchpathignorepatterns-array-string)
191+
- [`clearMocks`](https://jestjs.io/docs/configuration#clearmocks-boolean)
192+
- [`collectCoverageFrom`](https://jestjs.io/docs/configuration#collectcoveragefrom-array)
193+
- [`coveragePathIgnorePatterns`](https://jestjs.io/docs/configuration#coveragepathignorepatterns-arraystring)
194+
- [`coverageReporters`](https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options)
195+
- [`coverageThreshold`](https://jestjs.io/docs/configuration#coveragethreshold-object)
196+
- [`displayName`](https://jestjs.io/docs/configuration#displayname-string-object)
197+
- [`extraGlobals`](https://jestjs.io/docs/configuration#extraglobals-arraystring)
198+
- [`globalSetup`](https://jestjs.io/docs/configuration#globalsetup-string)
199+
- [`globalTeardown`](https://jestjs.io/docs/configuration#globalteardown-string)
200+
- [`moduleNameMapper`](https://jestjs.io/docs/configuration#modulenamemapper-objectstring-string--arraystring)
201+
- [`resetMocks`](https://jestjs.io/docs/configuration#resetmocks-boolean)
202+
- [`resetModules`](https://jestjs.io/docs/configuration#resetmodules-boolean)
203+
- [`restoreMocks`](https://jestjs.io/docs/configuration#restoremocks-boolean)
204+
- [`snapshotSerializers`](https://jestjs.io/docs/configuration#snapshotserializers-arraystring)
205+
- [`testMatch`](https://jestjs.io/docs/configuration#testmatch-arraystring)
206+
- [`transform`](https://jestjs.io/docs/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object)
207+
- [`transformIgnorePatterns`](https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)
208+
- [`watchPathIgnorePatterns`](https://jestjs.io/docs/configuration#watchpathignorepatterns-arraystring)
209209
210210
Example package.json:
211211

0 commit comments

Comments
 (0)