-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Enable throwSuggestions
RTL configuration
#3367
Changes from all commits
69cc5e6
d713b26
7a9a8bc
f051f4d
6fec485
8aa06d0
23ed47c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import { act } from 'react-dom/test-utils'; | ||
import { configure } from '@testing-library/react'; | ||
|
||
configure({ throwSuggestions: true }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The tests take over 1 minute now, I think it's fine to try it from time to time to improve tests, but I'm 👎 on keeping this enabled. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How long does it take without this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NVM I thought the GH CI was faster than that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can add it back
amanmahajan7 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
// Allow node-environment tests to properly fail when accessing DOM APIs, | ||
// as @testing-library/jest-dom may polyfill some DOM APIs like `window.CSS` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What element are we actually querying here? I don't really understand what a spinbutton is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input type=number
.