Skip to content

Commit 61331d9

Browse files
authored
Update intro.mdx to use named export for userEvent
As per testing-library/user-event#1205
1 parent bc8a451 commit 61331d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/user-event/intro.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ itself - e.g. in a `before`/`after` hook - for reasons described in
6464
["Avoid Nesting When You're Testing"](https://kentcdodds.com/blog/avoid-nesting-when-youre-testing).
6565

6666
```js
67-
import userEvent from '@testing-library/user-event'
67+
import {userEvent} from '@testing-library/user-event'
6868

6969
// inlining
7070
test('trigger some awesome feature when clicking the button', async () => {
@@ -80,7 +80,7 @@ test('trigger some awesome feature when clicking the button', async () => {
8080
```
8181

8282
```js
83-
import userEvent from '@testing-library/user-event'
83+
import {userEvent} from '@testing-library/user-event'
8484

8585
// setup function
8686
function setup(jsx) {

0 commit comments

Comments
 (0)