Skip to content

Commit 2daf8fe

Browse files
paskhaverSimenB
authored andcommitted
Fix typo in test file name in React documentation (#5254)
* Fix typo in test file name in React documentation * Update name of snapshot file
1 parent 490f435 commit 2daf8fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/TutorialReact.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Now let's use React's test renderer and Jest's snapshot feature to interact with
114114
the component and capture the rendered output and create a snapshot file:
115115

116116
```javascript
117-
// Link.react-test.js
117+
// Link.react.test.js
118118
import React from 'react';
119119
import Link from '../Link.react';
120120
import renderer from 'react-test-renderer';
@@ -143,7 +143,7 @@ test('Link changes the class when hovered', () => {
143143
When you run `npm test` or `jest`, this will produce an output file like this:
144144

145145
```javascript
146-
// __tests__/__snapshots__/Link.react-test.js.snap
146+
// __tests__/__snapshots__/Link.react.test.js.snap
147147
exports[`Link changes the class when hovered 1`] = `
148148
<a
149149
className="normal"

0 commit comments

Comments
 (0)