File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Open a recording and click export to use the Testing Library script option.
78
78
* @jest-environment-options { "url": "https://example.com/" }
79
79
*/
80
80
const { screen , waitFor } = require (" @testing-library/dom" )
81
- const userEvent = require (" @testing-library/user-event" )
81
+ const { default : userEvent } = require (" @testing-library/user-event" )
82
82
require (" @testing-library/jest-dom" )
83
83
84
84
test (" Example" , async () => {
Original file line number Diff line number Diff line change 3
3
* @jest -environment-options { "url": "https://example.com/" }
4
4
*/
5
5
const { screen, waitFor } = require ( "@testing-library/dom" )
6
- const userEvent = require ( "@testing-library/user-event" )
6
+ const { default : userEvent } = require ( "@testing-library/user-event" )
7
7
require ( "@testing-library/jest-dom" )
8
8
9
9
test ( "Example" , async ( ) => {
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ export class Extension implements StringifyExtension {
28
28
out . appendLine (
29
29
'const { screen, waitFor } = require("@testing-library/dom")' ,
30
30
)
31
- out . appendLine ( 'const userEvent = require("@testing-library/user-event")' )
31
+ out . appendLine (
32
+ 'const { default: userEvent } = require("@testing-library/user-event")' ,
33
+ )
32
34
out . appendLine ( 'require("@testing-library/jest-dom")' )
33
35
34
36
out . appendLine ( "" )
You can’t perform that action at this time.
0 commit comments