bun-test
π―Skillfrom daleseo/bun-skills
Configures Bun's built-in test runner with Jest-compatible APIs, enabling fast and efficient unit, integration, and snapshot testing for Bun projects.
Installation
npx skills add https://github.com/daleseo/bun-skills --skill bun-testSkill Details
Overview
# Bun Skills
Agent skills for AI coding assistants working with Bun JavaScript runtime. These skills follow the [Agent Skills standard](https://agentskills.io/specification) and are distributed through [skills.sh](https://skills.sh).
Installation
Install all skills:
```bash
npx skills add daleseo/bun-skills
```
Or in Claude Code:
```bash
/install-skill https://github.com/daleseo/bun-skills
```
The interactive installation process guides you through selecting specific skills, choosing target agents, determining installation scope (project or global), and selecting installation method (symlink or copy).
Available Skills
bun-init
Initialize new Bun projects with TypeScript and optimal configuration. Use when: (1) starting a new Bun project, (2) converting a directory to a Bun project, (3) setting up CLI tools, web apps, APIs, or libraries.
node-to-bun
Migrate Node.js projects to Bun with compatibility analysis. Use when: (1) converting existing npm/pnpm/yarn projects to Bun, (2) auditing dependencies for Bun compatibility, (3) updating build configurations.
deno-to-bun
Migrate Deno projects to Bun with API compatibility analysis. Use when: (1) converting Deno.\* APIs to Bun equivalents, (2) migrating from Deno Deploy, (3) updating permissions model and import maps.
cloudflare-to-bun
Migrate Cloudflare Workers to Bun with runtime compatibility analysis. Use when: (1) converting Workers to Bun, (2) migrating from Cloudflare bindings (KV, R2, D1, Durable Objects), (3) moving from edge to server deployment.
bun-dev-server
Set up high-performance development servers with Hot Module Replacement. Use when: (1) creating dev servers for web applications, (2) setting up React Fast Refresh, (3) configuring API servers with live reload.
bun-test
Configure Bun's built-in test runner with Jest-compatible APIs. Use when: (1) setting up testing infrastructure, (2) writing unit/integration/snapshot tests, (3) migrating from Jest to Bun test. 3-10x faster than Jest.
bun-build
Create optimized production bundles with Bun's native bundler. Use when: (1) building applications for production, (2) optimizing bundle sizes, (3) setting up multi-environment builds, (4) replacing webpack/esbuild/rollup.
bun-deploy
Generate optimized Docker images for Bun applications. Use when: (1) deploying to containers, (2) minimizing image sizes (88MB+ reduction vs Node.js), (3) setting up CI/CD pipelines, (4) deploying to Kubernetes.
Usage
Skills activate automatically when relevant tasks are detected. You can explicitly invoke skills through:
- Claude Code: Slash commands (e.g.,
/bun-init) - Cursor: File pattern rules and project context
- Other agents: Tool-specific mechanisms
Structure
Each skill contains:
SKILL.md- Main skill instructions with frontmatter metadatareferences/- Optional supplementary documentation loaded on demand
```
bun-skills/
βββ skills/
β βββ bun-init/
β β βββ SKILL.md
β βββ node-to-bun/
β β βββ SKILL.md
β β βββ references/
β β βββ compatibility-matrix.md
β βββ deno-to-bun/
β β βββ SKILL.md
β β βββ references/
β β βββ api-mapping.md
β β βββ permissions.md
β βββ cloudflare-to-bun/
β β βββ SKILL.md
β β βββ references/
β β βββ runtime-apis.md
β β βββ bindings.md
β β βββ deployment.md
β βββ bun-dev-server/
β β βββ SKILL.md
β β βββ references/
β β βββ hmr-examples.md
β βββ bun-test/
β β βββ SKILL.md
β β βββ references/
β β βββ jest-migration.md
β β βββ mocking.md
β β βββ examples.md
β βββ bun-build/
β β βββ SKILL.md
β β βββ references/
β β βββ targets.md
β β βββ optimization.md
β β βββ plugins.md
β βββ bun-deploy/
β βββ SKILL.md
β βββ references/
β βββ dockerfile-templates.md
β βββ kubernetes.md
β βββ ci-cd.md
β βββ multi-platform.
More from this repository7
Generates optimized Docker images for Bun applications, reducing container sizes and streamlining deployment processes across container platforms.
Initializes new Bun projects with TypeScript configuration, creating a standardized project structure and setup for various application types like CLIs, web apps, APIs, and libraries.
Creates optimized production bundles for Bun applications, replacing traditional bundlers like webpack and esbuild with Bun's native bundling capabilities.
Configures high-performance development servers for Bun projects with Hot Module Replacement, enabling rapid web application and API development with live reloading.
Migrates Deno projects to Bun by analyzing and converting Deno-specific APIs, import maps, and runtime permissions to their Bun equivalents.
Migrates Cloudflare Workers projects to Bun runtime, analyzing and converting runtime APIs, bindings, and deployment configurations for seam
Assists developers in migrating existing JavaScript/TypeScript projects from various runtimes (Node.js, Deno, Cloudflare Workers) to Bun by analyzing dependencies, APIs, and configurations for comp...