-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
Refactor : src/components/AgendaItems/AgendaItemsCreateModal from Jest to Vitest #2489 #2721
Conversation
WalkthroughThis pull request focuses on migrating the test file Changes
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Learnings (1)📓 Common learnings
🪛 GitHub Check: Performs linting, formatting, type-checking, checking for different source and target branchsrc/components/AgendaItems/AgendaItemsCreateModal.spec.tsx[failure] 76-76: 🔇 Additional comments (4)src/components/AgendaItems/AgendaItemsCreateModal.spec.tsx (4)
The necessary imports for Vitest and testing-library jest-dom have been correctly added.
The mock functions have been correctly converted from
The module mocks for 'react-toastify' and 'utils/convertToBase64' have been properly converted to use Vitest's mocking syntax.
The type declaration for the mocked convertToBase64 function is correctly implemented using Vitest's typing. 🧰 Tools🪛 GitHub Check: Performs linting, formatting, type-checking, checking for different source and target branch[failure] 76-76: 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
|
Please submit your PRs against our Also if applicable, make sure your branch name is different from Closing. |
Ah okay is everything else is correct like the code changes?? I'll submit it again. |
Refactored src/components/AgendaItems/AgendaItemsCreateModal.test.tsx to src/components/AgendaItems/AgendaItemsCreateModal.spec.tsx
Issue: #2489 : #2489
Changes Implemented:
Refactored the testing framework from Jest to Vitest in AgendaItemsCreateModal.test.tsx.
Updated import statements, mocking methods, and assertions to align with Vitest conventions.
Verified compatibility with the existing codebase using Vitest.
From AgendaItemsCreateModal.test.tsx → AgendaItemsCreateModal.spec.tsx to follow the naming convention for Vitest.
Refactor :
src/components/AgendaItems/AgendaItemsCreateModal.test.tsx
from Jest to Vitest #2489Other information
I have read the previous refactor PR and tried to keep things as uniform as possible.
Please suggest any other changes if required.
Summary by CodeRabbit