Skip to content

chore: migrate from npm+vitest to bun#12

Merged
peter-svensson merged 4 commits intomainfrom
chore/migrate-to-bun
Mar 8, 2026
Merged

chore: migrate from npm+vitest to bun#12
peter-svensson merged 4 commits intomainfrom
chore/migrate-to-bun

Conversation

@peter-svensson
Copy link
Copy Markdown
Member

Summary

  • Replace npm with bun as package manager (bun.lock replaces package-lock.json)
  • Replace vitest with bun:test native test runner
  • Update tsconfig to ESNext target with bundler moduleResolution
  • Add tsconfig.build.json for production builds
  • Update CI workflow to use setup-bun with bunfig.toml for scoped registry auth
  • Add Codecov coverage reporting

Test plan

  • CI passes with NATS service container
  • All tests pass with bun:test
  • Coverage report uploads to Codecov
  • GitHub Packages install works via bunfig.toml auth

peter-svensson and others added 3 commits March 8, 2026 21:18
Replace npm with bun as the package manager and runtime, and vitest
with bun:test as the test runner. Update tsconfig to use ESNext/bundler
module resolution with a separate tsconfig.build.json for production
builds. Convert all test files from vitest APIs (vi.fn, vi.mock,
vi.waitFor) to bun:test equivalents (mock, mock.module, custom waitFor
helper). Update CI workflow to use oven-sh/setup-bun with bunfig.toml
for scoped GitHub Packages registry auth.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep bun workflow, scripts, and devDependencies from the migration
branch. Remove package-lock.json and vitest.config.ts reintroduced
by main. Incorporate release workflows and topology test updates
from main.
@peter-svensson peter-svensson enabled auto-merge (squash) March 8, 2026 20:54
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Branch protection requires the check named "CI" (uppercase). The job
key "ci" without a name field reports as lowercase "ci", which doesn't
satisfy the required check. Add explicit name: CI to match.
@peter-svensson peter-svensson merged commit 4e6dede into main Mar 8, 2026
5 checks passed
@peter-svensson peter-svensson deleted the chore/migrate-to-bun branch March 8, 2026 20:58
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.

1 participant