unit-test
Installation
SKILL.md
When to use this skill
Use this skill when:
- User asks to create or write unit tests
- User mentions testing, test coverage, or Bun test
- User wants to test specific functions, modules, or components
- User asks to add test files or improve test coverage
- User mentions test frameworks, mocking, or assertions
What this skill does
This skill provides expertise in creating comprehensive, well-structured unit tests using Bun's built-in testing framework. It covers test file creation, Bun test features, best practices, and RestMan-specific testing guidelines.
Core capabilities
1. Test File Creation
- Create test files with proper naming conventions:
*.test.ts,*_test.ts,*.spec.ts,*_spec.ts - Use TypeScript with proper types from
bun:test - Follow the project's code style guidelines (single quotes, camelCase, etc.)