File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 39
39
"author" :
" Kent C. Dodds <[email protected] > (https://kentcdodds.com)" ,
40
40
"license" : " MIT" ,
41
41
"dependencies" : {
42
- "@babel/runtime" : " ^7.9.6 " ,
43
- "@testing-library/dom" : " ^7.2.2 " ,
42
+ "@babel/runtime" : " ^7.10.2 " ,
43
+ "@testing-library/dom" : " ^7.8.0 " ,
44
44
"@types/testing-library__react" : " ^10.0.1"
45
45
},
46
46
"devDependencies" : {
47
47
"@reach/router" : " ^1.3.3" ,
48
- "@testing-library/jest-dom" : " ^5.5 .0" ,
48
+ "@testing-library/jest-dom" : " ^5.9 .0" ,
49
49
"dotenv-cli" : " ^3.1.0" ,
50
- "kcd-scripts" : " ^5.11.1 " ,
50
+ "kcd-scripts" : " ^6.2.0 " ,
51
51
"npm-run-all" : " ^4.1.5" ,
52
52
"react" : " ^16.13.1" ,
53
53
"react-dom" : " ^16.13.1" ,
Original file line number Diff line number Diff line change @@ -74,16 +74,16 @@ function render(
74
74
// folks can use all the same utilities we return in the first place that are bound to the container
75
75
} ,
76
76
asFragment : ( ) => {
77
- /* istanbul ignore if ( jsdom limitation) */
77
+ /* istanbul ignore else (old jsdom limitation) */
78
78
if ( typeof document . createRange === 'function' ) {
79
79
return document
80
80
. createRange ( )
81
81
. createContextualFragment ( container . innerHTML )
82
+ } else {
83
+ const template = document . createElement ( 'template' )
84
+ template . innerHTML = container . innerHTML
85
+ return template . content
82
86
}
83
-
84
- const template = document . createElement ( 'template' )
85
- template . innerHTML = container . innerHTML
86
- return template . content
87
87
} ,
88
88
...getQueriesForElement ( baseElement , queries ) ,
89
89
}
You can’t perform that action at this time.
0 commit comments