bun-test

Community

Test JavaScript/TypeScript 20x faster with Bun.

Authorzacharyr0th
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides expert guidance for Bun's built-in test runner, helping developers write and execute tests for JavaScript and TypeScript projects with unparalleled speed. It addresses the need for efficient testing, mocking, and coverage reporting, significantly outperforming traditional tools like Jest.

Core Features & Use Cases

  • Comprehensive Testing: Write unit and integration tests using familiar describe, test, and expect matchers, supporting async code and custom timeouts.
  • Mocking & Spying: Create mock functions, spy on object methods, and mock entire modules to isolate code and ensure fast, reliable tests.
  • Advanced Features: Implement test lifecycle hooks (beforeAll, afterEach), generate snapshots, and measure code coverage for robust quality assurance.
  • Use Case: "I want to migrate my Jest tests to Bun. Show me how to convert jest.fn() to Bun's mock() and how to set up code coverage."

Quick Start

Write a basic test file for a math.ts utility that includes addition and subtraction functions, using Bun's test runner.

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: bun-test
Download link: https://github.com/zacharyr0th/next-starter/archive/main.zip#bun-test

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 471,000+ vetted skills library on demand.