Agent skill · software engineering · secondsky
bun-test-basics
Use for bun:test syntax, assertions, describe/it, test.skip/only/each, and basic patterns.
Why this skill is useful
Provides specific Bun test syntax and patterns that are not widely documented, enhancing the AI's ability to generate Bun-compatible test code.
What it needs
Requires bun installed locally. About 2k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
Bun Test Basics Bun ships with a fast, built-in, Jest-compatible test runner. Tests run with the Bun runtime and support TypeScript/JSX natively. Quick Start Writing Tests Test File Patterns Bun discovers test files matching: .test.{js jsx ts tsx} test.{js jsx ts tsx} .spec.{js jsx ts tsx} spec.{js jsx ts tsx} Test Modifiers Parameterized Tests Concurrent Tests Common Matchers CLI Options Output Reporters Common Errors Error Cause Fix ------- ------- ----- Test timeout Test exceeds 5s Use --timeout or optimize No tests found Wrong file pattern Check file naming expect is not defined Missing import Import from bun:test Assertion failed Test failure Check expected vs actual When to Load References Load references/matchers.md when: Need complete matcher reference Custom matcher patterns Load references/cli-options.md when: Full CLI flag reference Advanced execution options
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/bun-test-basics