-
-
Notifications
You must be signed in to change notification settings - Fork 97
[pkg] Upgrade to @testing-library packages #122
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
Conversation
ab5f0d1
to
7f40977
Compare
85c9633
to
50f5551
Compare
50f5551
to
023ff45
Compare
unstable_scheduleCallback, | ||
// eslint-disable-next-line @typescript-eslint/camelcase | ||
unstable_NormalPriority, | ||
} from 'scheduler/unstable_mock'; |
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.
all testing with scheduler is done via this mock module rather than jest time mocking
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.
facebook/react#14964 << context
build currently failing because coveralls is down |
@@ -0,0 +1,124 @@ | |||
--- |
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.
these new files are just because they didn't change from 2.0 previously so it didn't create a copy
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.
👍
Optional peerDeps have been added to reflect the needed testing library versions. These are optional because you don't have to use the testing part of rest-hooks.
Future work: 'rest-hooks/test' should be its own package so breaking changes can be separated.