Conversation
There was a problem hiding this comment.
Pull request overview
This PR migrates the repository’s TypeScript unit tests from Jest/ts-jest to Vitest, updating test files and configuration to run under the new test runner.
Changes:
- Added a
vitest.config.mjsand switchednpm testtovitest run. - Updated unit tests to use Vitest APIs (
describe/it/vi) and Vitest mocking patterns. - Removed Jest configuration and Jest-related devDependencies.
Reviewed changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| vitest.config.mjs | Adds Vitest runner configuration (node environment, include pattern, clearMocks). |
| package.json | Replaces Jest-based test script and devDependencies with Vitest. |
| jest.config.mjs | Removes Jest/ts-jest configuration. |
| test/prek.test.ts | Ports Jest mocks to Vitest mocks using vi.hoisted and vi.mock. |
| test/manifest.test.ts | Ports module-mocking and tests to Vitest, with module resets between cases. |
| test/install.test.ts | Ports test structure from test() to describe/it under Vitest. |
| test/cache.test.ts | Ports action toolkit mocking to Vitest; introduces a hoisting-sensitive mock context. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44e069a26f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
Verification