Skip to content

Migrate to ESM with esbuild, vitest#227

Merged
davidgamero merged 5 commits intomainfrom
migrate-to-esm
Mar 26, 2026
Merged

Migrate to ESM with esbuild, vitest#227
davidgamero merged 5 commits intomainfrom
migrate-to-esm

Conversation

@bosesuneha
Copy link
Copy Markdown
Member

  • Update @actions/core to 3.x, @actions/exec to 3.x, @actions/io to 3.x
  • Replace @vercel/ncc + babel with esbuild (build.mjs) targeting Node 20 ESM
  • Replace jest/babel-jest/ts-jest with vitest and @vitest/coverage-v8
  • Update tsconfig to NodeNext module resolution with strict mode
  • Add explicit .js extensions to all relative imports (NodeNext requirement)
  • Fix implicit any index signatures in parseCluster and parseMethod
  • Migrate all test files from jest to vi.mock/vi.mocked APIs
  • Fix ESM module spying limitations using vi.mock() at module level
  • Fix env var test pollution in default.test.ts with afterEach cleanup

- Update @actions/core to 3.x, @actions/exec to 3.x, @actions/io to 3.x
- Replace @vercel/ncc + babel with esbuild (build.mjs) targeting Node 20 ESM
- Replace jest/babel-jest/ts-jest with vitest and @vitest/coverage-v8
- Update tsconfig to NodeNext module resolution with strict mode
- Add explicit .js extensions to all relative imports (NodeNext requirement)
- Fix implicit any index signatures in parseCluster and parseMethod
- Migrate all test files from jest to vi.mock/vi.mocked APIs
- Fix ESM module spying limitations using vi.mock() at module level
- Fix env var test pollution in default.test.ts with afterEach cleanup
@bosesuneha bosesuneha requested a review from a team as a code owner March 25, 2026 18:04
@bosesuneha bosesuneha changed the title Migrate to ESM, esbuild, vitest Migrate to ESM with esbuild, vitest Mar 25, 2026
Copy link
Copy Markdown
Collaborator

@davidgamero davidgamero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@davidgamero davidgamero merged commit 1f527c0 into main Mar 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants