Bun Test

🌐Community
by daleseo · vlatest · Repository

Bun-test analyzes web pages built with Bun, identifying performance bottlenecks and potential errors for optimization.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add bun-test npx -- -y @trustedskills/bun-test
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "bun-test": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/bun-test"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The Bun Test skill enables AI agents to configure and run tests for web pages built with the Bun runtime environment, leveraging its Jest-compatible APIs. It facilitates faster test execution (3-10x faster than Jest) and provides tools for unit testing, integration testing, API testing, and snapshot testing. The skill guides users through setting up a testing directory structure and configuring Bun's test runner.

When to use it

  • When migrating existing Jest tests to the Bun environment.
  • For projects using Bun that require comprehensive unit and integration testing.
  • To ensure API endpoints are functioning correctly with automated tests.
  • When needing to verify output consistency through snapshot testing.
  • To quickly identify and resolve performance bottlenecks in Bun-based web applications.

Key capabilities

  • Jest-compatible test runner APIs.
  • Support for unit, integration, API, and snapshot testing.
  • Configuration of test timeouts and code coverage thresholds.
  • Global setup and teardown using beforeAll, afterAll, beforeEach, and afterEach.
  • Creation of a recommended directory structure for tests and fixtures.

Example prompts

  • "Set up Bun testing with Jest compatibility."
  • "Create a test file for my API endpoint."
  • "Configure code coverage to 80% in my Bun project."

Tips & gotchas

  • Requires Bun to be installed on the system.
  • The skill provides guidance, but familiarity with basic testing concepts is helpful.
  • Refer to the jest-migration.md, mocking.md and examples.md documents for more detailed information on migration, mocking, and test patterns.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
daleseo
Installs
67

🌐 Community

Passed automated security scans.