Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #46 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 62 57 -5
Branches 11 10 -1
=========================================
- Hits 62 57 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the project's testing infrastructure from Jest to Vitest and updates its development dependencies and configuration files accordingly.
Key Changes:
- Migration from Jest to Vitest for testing framework
- Update of ESLint configuration to use flat config format with modern TypeScript ESLint
- Minimum Node.js version requirement raised from 14.20.1 to 20
Reviewed changes
Copilot reviewed 13 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.setup.ts | New setup file configuring MongoDB URL from global setup via Vitest injection |
| vitest.global-setup.ts | New global setup file managing MongoDB Memory Server lifecycle for tests |
| vitest.config.ts | New Vitest configuration file replacing Jest config |
| test/migrations/1696851672239-test-migration.js | Updated to use environment variable for MongoDB URL instead of Jest globals |
| test/index.test.ts | Migrated test file from Jest to Vitest with updated assertions and test utilities |
| package.json | Updated dependencies and scripts to use Vitest instead of Jest, raised Node requirement |
| jest-mongodb-config.js | Removed Jest-specific MongoDB configuration (no longer needed) |
| eslint.config.mjs | New ESLint flat config replacing legacy .eslintrc.js |
| CHANGELOG.md | Added unreleased section documenting breaking change for Node 20 requirement |
| .npmignore | Simplified to whitelist approach instead of blacklist |
| .github/workflows/main.yml | Updated CI workflow to use Vitest and Node 20 |
| .eslintrc.js | Removed legacy ESLint configuration file |
| .eslintignore | Removed as no longer needed with flat config |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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
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.
No description provided.