mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 00:18:13 +08:00
@@ -1235,7 +1235,7 @@ it('sums numbers', () => {
|
||||
});
|
||||
```
|
||||
|
||||
All `expect()` matchers supported by Jest are [extensively documented here](http://facebook.github.io/jest/docs/expect.html).<br>
|
||||
All `expect()` matchers supported by Jest are [extensively documented here](https://facebook.github.io/jest/docs/en/expect.html#content).<br>
|
||||
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.
|
||||
|
||||
### Testing Components
|
||||
|
||||
Reference in New Issue
Block a user