File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ import {
129
129
wait ,
130
130
} from ' dom-testing-library'
131
131
// adds special assertions like toHaveTextContent and toBeInTheDOM
132
- import ' dom-testing-library /extend-expect'
132
+ import ' jest-dom /extend-expect'
133
133
134
134
function getExampleDOM () {
135
135
// This is just a raw example of setting up some DOM
@@ -534,13 +534,13 @@ finding elements in the DOM similarly to how users would do.
534
534
535
535
## Custom Jest Matchers
536
536
537
- When using [jest ][], we recommend that you import a set of custom matchers that
538
- make it easier to check several aspects of the state of a DOM element . These are
539
- provided by [ jest - dom ]( https : // github.com/gnapse/jest-dom), but are also
540
- included for convenience to be imported from this library directly :
537
+ When using [jest ][], it is convenient to import a set of custom matchers that
538
+ make it easier to check several aspects of the state of a DOM element . For
539
+ exmaple , you can use the ones provided by
540
+ [ jest - dom ]( https : // github.com/gnapse/jest-dom) :
541
541
542
542
` ` ` javascript
543
- import 'dom-testing-library /extend-expect'
543
+ import 'jest-dom /extend-expect'
544
544
545
545
// <span data-testid="greetings">Hello World</span>
546
546
expect(queryByTestId(container, 'greetings')).toBeInTheDOM()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 35
35
},
36
36
"files" : [
37
37
" dist" ,
38
- " typings" ,
39
- " extend-expect.js"
38
+ " typings"
40
39
],
41
40
"dependencies" : {
42
- "jest-dom" : " ^1.0.0" ,
43
41
"pretty-format" : " ^22.4.3" ,
44
42
"mutationobserver-shim" : " ^0.3.2" ,
45
43
"wait-for-expect" : " ^0.4.0"
46
44
},
47
45
"devDependencies" : {
48
46
"dtslint" : " ^0.3.0" ,
47
+ "jest-dom" : " ^1.7.0" ,
49
48
"jest-in-case" : " ^1.0.2" ,
50
49
"kcd-scripts" : " ^0.37.0" ,
51
50
"microbundle" : " ^0.4.4"
You can’t perform that action at this time.
0 commit comments