bun-test

Configure Bun's test runner with Jest-compatible APIs and project scaffolding.

4|1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/DaleSeo/bun-skills --skill bun-test-daleseo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-test
Source: https://github.com/DaleSeo/bun-skills/tree/main/skills/bun-test
Command: npx skills add https://github.com/DaleSeo/bun-skills --skill bun-test-daleseo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configuring Bun's built-in test runner and migrating Jest-based tests can be time-consuming. This Skill streamlines setup, enabling teams to write and run tests with Bun quickly.

Core Features & Use Cases

  • Jest-compatible APIs: Write tests using Bun's test runner with familiar Jest-style syntax.
  • Project setup: Scaffold test directories for unit, integration, and snapshot tests, and configure bunfig.toml and package.json scripts.
  • Migration support: Simplify migrating existing Jest test suites to Bun without major rewrites.
  • Use Case: When starting a Bun-based project, run this Skill to scaffold tests, wire scripts, and ensure coverage tooling is ready.

Quick Start

Use the bun-test skill to scaffold a Bun testing setup, including unit/integration/snapshot directories, bunfig.toml, and test script entries.

Frequently Asked Questions about bun-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Jest tests to Bun without rewriting my test suites?

Migrating Jest tests to Bun is simplified by using Bun's built-in test runner with Jest-compatible APIs, allowing you to transition existing test suites without major rewrites while configuring execution via bunfig.toml.

How do I set up unit, integration, and snapshot tests in a Bun project?

Setting up unit, integration, and snapshot tests in Bun involves scaffolding dedicated test directories, configuring bunfig.toml, and adding standard execution scripts to package.json to wire test execution and coverage.

Does Bun test runner support Jest-compatible APIs for existing JavaScript projects?

Yes, Bun test runner supports Jest-compatible APIs, enabling developers to write and execute tests using familiar Jest-style syntax within Bun 1.0+ projects for rapid test setup.

What is the best way to configure test coverage in a Bun workflow?

Configuring test coverage in a Bun workflow requires setting up bunfig.toml and standard package.json scripts to wire test execution and ensure coverage tooling is ready for your test suites.

Can I use bunfig.toml to configure Bun's built-in test runner?

Yes, you can use bunfig.toml to configure Bun's built-in test runner, enforcing Bun 1.0+ compatibility and wiring test execution alongside standard package.json scripts.

Why migrate from Jest to Bun's built-in test runner?

Migrating from Jest to Bun's built-in test runner streamlines setup and enables teams to write and run tests rapidly using Jest-compatible syntax without major test suite rewrites.