-
-
Notifications
You must be signed in to change notification settings - Fork 691
test({react,vanilla}): migrate to vitest fake timers with adding 'loading' assertions, replace 'userEvent'/'findByText' with 'fireEvent'/'getByText', and remove 'waitFor' #3147
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
Draft
sukvvon
wants to merge
12
commits into
pmndrs:main
Choose a base branch
from
sukvvon:test/migrate-to-vitest-fake-timer
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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. |
commit: |
bae4b43
to
93723d9
Compare
|
Playground | Link |
---|---|
React demo | https://livecodes.io?x=id/8BA34CV3Y |
See documentations for usage instructions.
5d220f5
to
80e3043
Compare
…ByText' with 'getByText', and add fake timers
80e3043
to
9c44611
Compare
0fc2d0e
to
c93671a
Compare
…ByText' with 'getByText', and remove 'waitFor'
4c297c0
to
c871edf
Compare
9643b35
to
7f52e9e
Compare
7f52e9e
to
4d9a53c
Compare
…t' with 'getByText', add fake timer, and remove 'waitFor'
4d9a53c
to
1c953e2
Compare
… with 'getByText', and remove 'waitFor'
6a37f73
to
81d53d3
Compare
…Text' with 'getByText', add fake timer, and remove 'waitFor'
81d53d3
to
f6140d4
Compare
…vent', 'findByText' with 'getByText', add fake timer, and remove 'waitFor'
8a46c27
to
1e1686e
Compare
…fireEvent', 'findByText' with 'getByText', add fake timer, and remove 'waitFor'
…fireEvent', 'findByText' with 'getByText'
…fireEvent', 'findByText' with 'getByText', and add fake timer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Bug Reports or Discussions
Fixes #
Summary
remove
waitFor
replace
findByText
withgetByText
replace
userEvent
withfireEvent
migrate to
vitest
fake timers with addingloading
assertionsCheck List
pnpm run fix
for formatting and linting code and docs