testing

Write and debug vitest and bun tests for the AX project.

5|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/project-ax/ax --skill testing-project-ax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/project-ax/ax/tree/main/.claude/skills/ax/testing
Command: npx skills add https://github.com/project-ax/ax --skill testing-project-ax

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, debugging, and maintaining tests for the project's vitest/bun test suite, ensuring code quality and stability.

Core Features & Use Cases

  • Test Structure Guidance: Understand the organization and naming conventions of test files.
  • Debugging Strategies: Learn patterns for isolating and fixing test failures, especially concerning SQLite and process state.
  • Use Case: When a new feature is developed, use this Skill to understand how to write comprehensive unit and integration tests for it, ensuring it meets the project's bug fix policy.

Quick Start

Use the testing skill to understand how to write a new test for the prompt builder module.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I write tests for the prompt builder module using vitest?

Writing tests for the prompt builder module involves following the project's test structure guidance and naming conventions to create comprehensive unit and integration tests that ensure code quality and stability.

What is the best way to debug vitest failures related to SQLite databases?

The best way to debug vitest failures related to SQLite databases is to use specific patterns to isolate and fix test failures, particularly by managing isolated SQLite databases and process-level state to ensure accurate test execution.

Does the AX project bug fix policy require regression testing for new features?

Yes, the AX project bug fix policy requires regression testing for bug fixes. When a new feature is developed, you must write comprehensive tests to ensure it adheres to the project's stability guidelines.

How do I structure test files and use mocking patterns in the bun test suite?

Structuring test files and using mocking patterns in the bun test suite requires following the provided guidance on test organization, fixtures, and assertions to maintain consistency and isolate dependencies effectively.

Why are my vitest tests failing due to process-level state issues?

Vitest tests fail due to process-level state issues when state is not properly isolated. The testing Skill provides strategies for isolating and fixing these failures, particularly concerning SQLite databases and process-level state.