Skip to content

Commit 68792aa

Browse files
committed
Add missing user-event import
1 parent 2adcf33 commit 68792aa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/fixtures/example.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @jest-environment-options { "url": "https://example.com/" }
44
*/
55
const { screen, waitFor } = require("@testing-library/dom")
6+
const userEvent = require("@testing-library/user-event")
67
require("@testing-library/jest-dom")
78

89
test("Example", async () => {

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class Extension implements StringifyExtension {
2727
out.appendLine(
2828
'const { screen, waitFor } = require("@testing-library/dom")',
2929
)
30+
out.appendLine('const userEvent = require("@testing-library/user-event")')
3031
out.appendLine('require("@testing-library/jest-dom")')
3132

3233
out.appendLine("")

0 commit comments

Comments
 (0)