test-api

Run Bun unit tests for backend API changes.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/monobaselabs/monobase-js --skill test-api-monobaselabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-api
Source: https://github.com/monobaselabs/monobase-js/tree/main/.claude/skills/test-api
Command: npx skills add https://github.com/monobaselabs/monobase-js --skill test-api-monobaselabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineering teams verify backend API changes by running unit tests after implementing or modifying API handlers, ensuring correctness and reducing regression risk.

Core Features & Use Cases

  • Run all tests: Execute the full Bun test suite for the API service to validate end-to-end correctness for new changes.
  • Run specific tests: Target a single test file to quickly verify a particular handler or module.
  • Watch and iterate: Use watch mode to receive live feedback during development and refactor confidently.

Quick Start

Run all API unit tests using bun test from the services/api-ts folder.

Frequently Asked Questions about test-api

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

FAQPage Schema
How do I run backend API unit tests using Bun to verify handler changes?

Run backend API unit tests using Bun by executing the test suite from the services/api-ts folder. This validates new handlers and schema updates to ensure backend correctness after modifications.

What is the best way to validate a specific API handler with Bun tests?

Validate a specific API handler by targeting a single test file with Bun. This quickly verifies a particular module without running the entire test suite, providing fast feedback during development.

Do I need to colocate test files with my TypeScript source code to use Bun tests?

Yes, you need to colocate test files next to their corresponding TypeScript source files. The tests must use a .test.ts suffix so Bun can automatically discover and execute them during the test run.

Can I use watch mode with Bun tests to get live feedback while refactoring backend APIs?

Yes, you can use watch mode with Bun tests to get live feedback while refactoring backend APIs. This allows you to iterate confidently and catch regressions immediately during development.

Why should I run API unit tests after modifying backend schemas or handlers?

Run API unit tests after modifying backend schemas or handlers to reduce regression risk and ensure correctness. This provides quick feedback during development to verify end-to-end integrity across the API service.