testing-bun

Configure Bun's built-in test runner for TypeScript projects.

6|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/open-hax/opencode-skills --skill testing-bun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-bun
Source: https://github.com/open-hax/opencode-skills/tree/main/.opencode/skills/testing-bun
Command: npx skills add https://github.com/open-hax/opencode-skills --skill testing-bun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Speeds up test execution and simplifies setup for Bun-based projects by configuring Bun's built-in test runner and standardizing the testing workflow.

Core Features & Use Cases

  • Native TypeScript: Bun's test runner handles TypeScript without transpilation.
  • Fast feedback loop: Minimal startup time for test suites in typical projects.
  • Workspace conventions: Provides a consistent test file layout and script conventions for teams.

Quick Start

Run bun test in your project root to execute all tests with Bun's built-in runner.

Frequently Asked Questions about testing-bun

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

FAQPage Schema
How do I run unit tests with Bun and native TypeScript?

Run unit tests with Bun by executing `bun test` in your project root. Bun's built-in test runner handles TypeScript natively without transpilation, providing a fast feedback loop and consistent test results.

Does Bun's test runner support TypeScript out of the box?

Yes, Bun's test runner supports TypeScript natively without requiring a transpilation step. It handles TypeScript files directly, simplifying setup and speeding up test execution for your workspace.

What's the best way to speed up test execution in a Bun project?

The best way to speed up test execution is using Bun's built-in test runner. It offers minimal startup time for test suites and standardizes workspace conventions for consistent, fast feedback.

How do I set up workspace conventions for Bun tests?

Set up workspace conventions for Bun tests by configuring the built-in test runner in your project root. This provides a consistent test file layout and script conventions for teams using `bun test`.

Do I need to install extra dependencies to run TypeScript tests in Bun?

No extra dependencies are needed to run TypeScript tests in Bun. You only need Bun installed and a project using `bun test`, which enables native TypeScript support automatically.