Skip to content

Commit a45ced8

Browse files
committed
docs: reintroduce import/require usage for user-event
1 parent 6bb14e8 commit a45ced8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: docs/user-event/install.mdx

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ yarn add --dev @testing-library/user-event
2626
</TabItem>
2727
</Tabs>
2828

29+
Now simply import it in your tests:
30+
31+
```js
32+
import userEvent from '@testing-library/user-event'
33+
34+
// or
35+
36+
const {default: userEvent} = require('@testing-library/user-event')
37+
```
38+
2939
Note that `@testing-library/user-event` requires `@testing-library/dom`.
3040

3141
If you use one of the

0 commit comments

Comments
 (0)