Bun Test Configuration
Learn how to configure Bun test behavior using bunfig.toml and command-line options
Install
npx skills add jarle/bun-skills --skill Bun Test configurationgit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-test-configuration ~/.claude/skills/Bun-Test-configurationPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Test configuration
> Learn how to configure Bun test behavior using bunfig.toml and command-line options
Configure `bun test` via `bunfig.toml` file and command-line options. This page documents the available configuration options for `bun test`.
## Configuration File
You can configure `bun test` behavior by adding a `[test]` section to your `bunfig.toml` file:
```toml title="bunfig.toml" icon="settings" theme={"theme":{"light":"github-light","dark":"dracula"}}
[test]
# Options go here
```
## Test Discovery
### root
The `root` option specifies a root directory for test discovery, overriding the default behavior of scanning from the project root.
```toml title="bunfig.toml" icon="settings" theme={"theme":{"light":"github-light","dark":"dracula"}}
[test]
root = "src" # Only scan for tests in the src directory
```
This is useful when you want to:
* Limit test discovery to specific directories
* Exclude certain parts of your project from test scanning
* Organize tests in a specific subdirectory structure
#### Examples
```toml title="bunfig.toml" icon="settings" theme={"theme":{"light":"github-light","dark":"dracula"}}
[test]
# Only run tests in the src directory
root = "src"
# Run tests in a specific test directory
root = "tests"
# Run tests in multiple specific directories (not currently supported - use patterns instead)
# root = ["src", "lib"] # This syntax is not supported
```
### Preload ScriptsDetails
- Skill name
Bun Test configuration- Repository
- jarle/bun-skills
- Path
skills/bun-test-configuration/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Test Configuration skill do?
Learn how to configure Bun test behavior using bunfig.toml and command-line options
How do I install the Bun Test Configuration skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Test configuration. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Test Configuration popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Test Runner
9jarle/bun-skills
Bun's fast, built-in, Jest-compatible test runner with TypeScript support, lifecycle hooks, mocking, and watch mode
Bun Snapshots
9jarle/bun-skills
Learn how to use snapshot testing in Bun to save and compare output between test runs
Bun Writing Tests
9jarle/bun-skills
Learn how to write tests using Bun's Jest-compatible API with support for async tests, timeouts, and various test modifiers
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.