testing-bun

Enforce disciplined Bun testing practices with bun:test for deterministic integration tests.

289|16|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/evrendom/rudel --skill testing-bun-evrendom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-bun
Source: https://github.com/evrendom/rudel/tree/main/.claude/skills/testing-bun
Command: npx skills add https://github.com/evrendom/rudel --skill testing-bun-evrendom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures Bun-based tests are written and executed according to a strict, scalable standard, eliminating ambiguous test practices and flaky results.

Core Features & Use Cases

  • Enforces bun:test usage and prohibits Vitest/Jest in Bun projects to maintain consistency.
  • Guides end-to-end integration testing against real infrastructure, including API, DB, and environment configurations.
  • Enforces critical rules: no try/catch in positive tests, no early returns, and no test skipping; promotes inline setup for deterministic tests.
  • Provides best practices for deterministic tests, aside from environment management and inline setup.

Quick Start

Run bun run test and follow inline setup guidelines to execute Bun tests deterministically.

Frequently Asked Questions about testing-bun

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

FAQPage Schema
How do I enforce strict Bun testing practices for end-to-end integration tests?

To enforce strict Bun testing practices, apply rules like no try/catch in positive tests, no early returns, and no skips. This ensures robust e2e integration tests against real infrastructure like databases and APIs while eliminating flaky results.

Why should I avoid try/catch and early returns in Bun tests?

Avoiding try/catch in positive tests and early returns enforces disciplined test execution. This practice eliminates ambiguous test outcomes, prevents silent failures, and promotes inline setup to achieve deterministic, scalable end-to-end test results.

Can I use Vitest or Jest for integration testing in a Bun project?

No, using Vitest or Jest in Bun projects is prohibited to maintain consistency. You must use bun:test exclusively to execute end-to-end integration tests deterministically against real infrastructure configurations.

What is inline setup in Bun testing and when do I need it for e2e scenarios?

Inline setup in Bun testing prepares required test data directly within the test block rather than globally. You need it for e2e scenarios to ensure explicit environment handling, deterministic API interactions, and reliable database transaction testing.

How do I run deterministic Bun tests against real infrastructure?

Run deterministic Bun tests by executing bun run test and following inline setup guidelines. This requires explicit environment handling for API endpoints and database interactions to prevent flaky integration test results.

What are the limitations of skipping tests in Bun integration projects?

Skipping tests in Bun projects is strictly prohibited because it undermines codebase reliability and hides infrastructure issues. Enforcing no skips ensures all API and database interactions are fully validated during end-to-end execution.