Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d36b012

Browse files
docs: Update setup to include import statement (#1153)
1 parent c91ebd8 commit d36b012

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎docs/user-event/setup.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ This allows to write multiple consecutive interactions that behave just like the
2727
described interactions by a real user.
2828

2929
```js
30+
import userEvent from "@testing-library/user-event";
31+
3032
const user = userEvent.setup()
3133

3234
await user.keyboard('[ShiftLeft>]') // Press Shift (without releasing it)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /