mock-to-internals-migration
OfficialSafely migrate Vitest mocks to Bun internals
Software Engineering#vitest#bun-test#test-isolation#barrel-exports#test-integrity#mock-migration#mock-conversion
AuthorZaxbyHub
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Migrating test mocks from Vitest to Bun's native test runner introduces common pitfalls like broken test isolation, missing real module exports in mocks, and broken barrel import patterns that can silently break test suites and introduce flaky test behavior.
Core Features & Use Cases
- Strict Procedural Guardrails: Defines required pre- and post-migration steps including baseline test runs, barrel export audits, and mock spread validation to prevent common migration errors.
- Forbidden Shortcut Prohibitions: Explicitly bans risky practices like inventing custom gating mechanisms or dismissing post-change test failures as pre-existing without verification.
- Validation Checklists: Provides dedicated reviewer and test engineer checks to verify command transformation idempotency, mock correctness, and test suite integrity after migration.
- Use Case: Ideal for development teams moving their test infrastructure from Vitest to Bun, ensuring mock conversions preserve existing test coverage and behavior without regressions.
Quick Start
Use the mock-to-internals-migration skill to convert all Vitest mock calls in your project's test suite to compatible Bun internal mock patterns while maintaining full test integrity.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mock-to-internals-migration Download link: https://github.com/ZaxbyHub/opencode-swarm/archive/main.zip#mock-to-internals-migration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.