Testing

From Esposter/Esposter · View interactive version

Testing is an AI agent skill from the GitHub repository Esposter/Esposter. Apply when writing .test.ts or .test-d.ts files. Esposter's Vitest conventions and the decision of what earns a test at all. The values a test writes are the test-values skill's.

How to use this skill

Skill file

Testing Conventions (Vitest)

Settled — do not re-propose

Deep dives

Structure and helpers:

Assertions and waiting:

Doubles:

Environment and running:

Structure

Test data — the `test-values` skill

Every literal, id, date, path and fixture a test writes is that skill's: the canonical values, dates computed from the epoch, the three checks a string literal passes, and the shared-data shapes. This page assumes them.

Assertions

Mocking

Optimistic Writes

Reactive Effects and Timers

Running Tests

What to Test

Every test earns its line or it is deleted — the keep test in references/what-earns-a-test.md decides it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.