-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
refactored: src/screens/Users from Jest to Vitest #2664
refactored: src/screens/Users from Jest to Vitest #2664
Conversation
WalkthroughThe pull request focuses on refactoring the test suite for the Changes
Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Learnings (1)📓 Common learnings
🔇 Additional comments (4)src/screens/Users/Users.spec.tsx (4)
The necessary testing utilities from '@testing-library/react' are properly imported, including
The changes correctly handle data types for localStorage:
All test cases have been correctly converted from Jest to Vitest using 'it' instead of 'test'. Also applies to: 325-325, 346-346, 365-365, 383-383, 432-432, 464-464, 481-481, 501-501, 522-522, 593-593, 623-623, 645-645, 718-718
The test cases correctly use:
Also applies to: 330-343, 378-380, 396-404, 459-461, 477-477, 495-495, 515-515, 537-537, 607-620, 639-639, 660-660, 674-674, 687-687, 699-699, 712-712, 733-744, 766-774 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
@antriksh-9 Please fixed the failed tests. |
This pull request did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please verify it has no conflicts with the develop branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work. |
Closing due to inactivity |
What kind of change does this PR introduce?
It is a refactor of changing the test case migration of jest to vitest.
Issue Number:
Fixes #2585
Did you add tests for your changes?
Yes
Snapshots/Videos:
If relevant, did you update the documentation?
Not relevant
Summary
This PR migrates the existing tests for Users.tsx from Jest to Vitest
Does this PR introduce a breaking change?
No
Have you read the contributing guide?
Yes
Summary by CodeRabbit
Bug Fixes
Users
component.Tests