bun-test

Run Bun unit tests for Dean Stack reducers, migrations, and schema logic.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bun-test provides a fast, deterministic unit-test runner for the Dean Stack, enabling pure-logic tests of reducers, migrations, and schema validations without a browser or DOM.

Core Features & Use Cases

  • Pure logic testing of atom reducers and IDB migration logic
  • Schema edge-case validation with Zod schemas
  • Snapshots and mocks for fast, repeatable unit tests that gate changes in the CI gate

Quick Start

Run bun test in the project root to execute all unit tests for core logic.

Frequently Asked Questions about bun-test

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

FAQPage Schema
How do I run unit tests for TypeScript reducers and migrations using Bun?

Run bun test in your project root to execute unit tests for pure logic like reducers, IDB migrations, and schema validations. This provides fast, deterministic feedback without needing a browser or DOM environment.

Can I validate Zod schema edge cases with Bun test?

Yes, Bun test supports schema edge-case validation by testing Zod schemas directly. You can run pure logic tests to ensure your schema validations handle edge cases correctly, providing deterministic results in local development.

What's the best way to separate unit tests from Playwright tests in a CI pipeline?

Maintain a clean separation by running pure logic tests with bun test and browser tests with Playwright. This ensures fast feedback and deterministic CI gate results by keeping DOM-dependent tests isolated from pure function tests.

Does unit testing IDB migration logic require a browser environment?

No, unit testing IDB migration logic with bun test does not require a browser or DOM. The runner automates pure logic tests for migrations and reducers, ensuring fast and deterministic execution in local development.

Why should I use Bun for testing pure functions instead of DOM-dependent test runners?

Bun provides a fast, deterministic unit-test runner that skips browser and DOM overhead. Testing pure functions, reducers, and schema validations with Bun ensures quick feedback and reliable results for your CI gate.