writing-bundler-tests

Official

Guides Bun bundler tests with itBundled.

Authorzhcndoc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps developers create and maintain bundler tests for Bun using the itBundled/expectBundled utilities located in test/bundler. It standardizes test scaffolding and ensures consistency across test suites.

Core Features & Use Cases

  • Structured test templates: Provides a repeatable format for writing bundler tests with file setups, entry points, and runtime expectations.
  • Standardized conventions: Enforces the itBundled/expectBundled workflow to verify bundling results, errors, and outputs.
  • Use Case: When adding or modifying bundler, transpiler, or code transformation tests, follow the guidelines to ensure reliable and maintainable test coverage.

Quick Start

Use itBundled to create a new bundler test under test/bundler with the example category/name, and run the Bun test suite to validate the bundle output.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: writing-bundler-tests
Download link: https://github.com/zhcndoc/bun/archive/main.zip#writing-bundler-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.