bun-test-mocking

Installation
SKILL.md

Bun Test Mocking

Bun provides Jest-compatible mocking with mock(), spyOn(), and module mocking.

Mock Functions

import { test, expect, mock } from "bun:test";

// Create mock function
const fn = mock(() => "original");

test("mock function", () => {
  fn("arg1", "arg2");
Installs
165
GitHub Stars
172
First Seen
Apr 3, 2026
bun-test-mocking — secondsky/claude-skills