writing-bundler-tests

Installation
SKILL.md

Writing Bundler Tests

Bundler tests use itBundled() from test/bundler/expectBundled.ts to test Bun's bundler.

Basic Usage

import { describe } from "bun:test";
import { itBundled, dedent } from "./expectBundled";

describe("bundler", () => {
  itBundled("category/TestName", {
    files: {
      "index.js": `console.log("hello");`,
    },
    run: {
      stdout: "hello",
    },
  });
Related skills
Installs
79
Repository
oven-sh/bun
GitHub Stars
89.5K
First Seen
Jan 22, 2026