-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add setup
API
#746
feat: add setup
API
#746
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 13bab99:
|
Codecov Report
@@ Coverage Diff @@
## userEvent14 #746 +/- ##
=============================================
Coverage 100.00% 100.00%
=============================================
Files 50 51 +1
Lines 965 1032 +67
Branches 389 411 +22
=============================================
+ Hits 965 1032 +67
Continue to review full report at Codecov.
|
What:
Add a
setup
APIWhy:
Closes #743
How:
userEvent.setup(defaultOptions)
returns the APIs ofuserEvent
bound to default options.It also reapplies
keyboardState
to subsequent calls ofkeyboard()
.The returned object also includes a
setup()
function that returns a set of APIs with other overwritten defaults but the samekeyboardState
.Checklist: