typescript-testing

Enforce Bun-based TypeScript and JavaScript test execution with bun test.

8|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/ilude/claude-code-config --skill typescript-testing-ilude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-testing
Source: https://github.com/ilude/claude-code-config/tree/main/skills/typescript-testing
Command: npx skills add https://github.com/ilude/claude-code-config --skill typescript-testing-ilude

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill covers TypeScript/JavaScript testing in Bun projects, outlining discovery patterns and how to structure tests.

Core Features & Use Cases

  • Bun test execution: always use bun test for Bun projects.
  • Test file organization: conventional naming patterns like *.test.ts and tests directories.
  • Describe/It structure: organize tests into suites with describe/it.
  • Test.todo and skipping: manage test plans and selective execution.

Quick Start

Create a test file and run bun test to execute tests.

Frequently Asked Questions about typescript-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run tests in a Bun project?

Use `bun test` to execute tests in Bun projects. Bun's test runner automatically discovers and runs test files matching patterns like *.test.ts, *.test.js, *.spec.ts, *.spec.js, and files in __tests__ directories, supporting unit, integration, and component tests.

What file naming conventions does Bun test support?

Bun test discovers files named *.test.ts, *.test.js, *.spec.ts, *.spec.js, and any test files inside __tests__ directories. These conventional patterns organize tests across typical Bun project structures.

Can I use Jest or Vitest with Bun projects?

For Bun projects, use Bun's native test runner with `bun test` instead of Jest or Vitest. Bun's test runner is optimized for Bun projects and provides describe/it structure, test.todo, and selective execution without external test frameworks.

How do I structure tests with describe and it blocks in Bun?

Organize Bun tests into suites using describe/it blocks to group related test cases. Bun's test runner supports this standard structure for managing test organization and readability across your test files.

Does Bun test support skipping tests or marking them as todo?

Yes, Bun's test runner supports test.todo for marking incomplete tests and skipping selective tests during execution, letting you manage test plans and control which tests run.