grep-for-mock-module-across-the-entire-test-file-and-confirm-eve

Official

Ensure mock.module conversions use spread-real-exports

AuthorZaxbyHub
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When migrating test files from Vitest to Bun, unconverted or incorrectly modified mock.module calls can cause broken mocks and failing tests after migration, making it easy to miss errors during manual review.

Core Features & Use Cases

  • Full File Scanning: Greps the entire test file to catch every mock.module occurrence, not just visible snippets.
  • Pattern Validation: Confirms each mock.module call uses the required spread-real-exports pattern to ensure compatibility with Bun's test runner.
  • Use Case: Use this skill as part of your Vitest to Bun migration workflow to validate test files before marking them as fully converted, avoiding post-migration test failures.

Quick Start

Use this skill to scan all test files in your project for mock.module calls and confirm every occurrence uses spread-real-exports before marking your Vitest to Bun migration complete.

Dependency Matrix

Required Modules

None required

Components

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: grep-for-mock-module-across-the-entire-test-file-and-confirm-eve
Download link: https://github.com/ZaxbyHub/opencode-swarm/archive/main.zip#grep-for-mock-module-across-the-entire-test-file-and-confirm-eve

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.