From d36b0128d45723d8d3af35f58bcb24953dc7926a Mon Sep 17 00:00:00 2001 From: Jordan Edmunds Date: Thu, 6 Oct 2022 03:15:28 -0400 Subject: [PATCH] docs: Update setup to include import statement (#1153) --- docs/user-event/setup.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/user-event/setup.mdx b/docs/user-event/setup.mdx index 22279def5..77546ab4d 100644 --- a/docs/user-event/setup.mdx +++ b/docs/user-event/setup.mdx @@ -27,6 +27,8 @@ This allows to write multiple consecutive interactions that behave just like the described interactions by a real user. ```js +import userEvent from "@testing-library/user-event"; + const user = userEvent.setup() await user.keyboard('[ShiftLeft>]') // Press Shift (without releasing it)