Skip to content

Commit c7d6a5d

Browse files
mkermani144Timer
authored andcommitted
Update README.md (#1573)
Update links to jest expect function.
1 parent d6781af commit c7d6a5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-scripts/template/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ it('sums numbers', () => {
884884
});
885885
```
886886

887-
All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/api.html#expect-value).<br>
888-
You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](http://facebook.github.io/jest/docs/api.html#tobecalled) to create “spies” or mock functions.
887+
All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).<br>
888+
You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](http://facebook.github.io/jest/docs/expect.html#tohavebeencalled) to create “spies” or mock functions.
889889

890890
### Testing Components
891891

@@ -943,7 +943,7 @@ it('renders welcome message', () => {
943943
});
944944
```
945945

946-
All Jest matchers are [extensively documented here](http://facebook.github.io/jest/docs/api.html#expect-value).<br>
946+
All Jest matchers are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).<br>
947947
Nevertheless you can use a third-party assertion library like [Chai](http://chaijs.com/) if you want to, as described below.
948948

949949
Additionally, you might find [jest-enzyme](https://github.com/blainekasten/enzyme-matchers) helpful to simplify your tests with readable matchers. The above `contains` code can be written simpler with jest-enzyme.

0 commit comments

Comments
 (0)