Skip to content

Commit

Permalink
update(web-testing): Jest DOM expect API
Browse files Browse the repository at this point in the history
issue #105
  • Loading branch information
sabertazimi committed Aug 4, 2021
1 parent 1cc94f9 commit 2c4811b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notes/web/javascript/javascriptAdvancedNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7461,7 +7461,10 @@ window.localStorage = {
Object.values = () => [];
```
`jest.env.setup.js`: inject more expect DOM assertion
`jest.env.setup.js`:
- Inject more expect DOM assertion.
- [Jest DOM Expect API](https://github.com/testing-library/jest-dom)
```js
import '@testing-library/jest-dom/extend-expect';
Expand Down

0 comments on commit 2c4811b

Please sign in to comment.