Test Gen

Generate comprehensive tests using Vitest with edge cases Use when this capability is needed.

tomevault-io Updated

File contents

Test Generation

Use this skill to generate tests that meet SISU's coverage standards.

Goals

  • Cover happy path, edge cases, and invalid inputs
  • Use Vitest syntax and patterns
  • Keep tests deterministic and isolated

Steps

  1. Identify target module and public behavior
  2. Enumerate input variations
  3. Generate tests for error handling and cancellation
  4. Validate coverage thresholds (≥ 80%)

Resources

See resources/vitest-patterns.md for patterns and examples.


Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/finger-gun--sisu--skill-test-gen commit e0627adc62

Frequently asked questions

npx skillmds@latest add tomevault-io/test-gen