vitest-testing

Installation
SKILL.md

Vitest Testing (Project-Specific)

For complete testing patterns, read .github/instructions/angular-testing.instructions.md. For NgRx store testing, read .github/instructions/ngrx-signals-testing.instructions.md.

Quick Reference

npm test              # Run all unit tests
npm test -- --watch   # Watch mode

Mandatory Rules

  • provideZonelessChangeDetection() in every test setup
  • Vitest globals pre-configured — never import describe, it, expect, vi
  • Signal inputs set via componentRef.setInput('name', value)
  • AAA pattern — Arrange, Act, Assert
  • No any — properly type all mocks
Installs
1
GitHub Stars
26
First Seen
Apr 2, 2026
vitest-testing — danielsogl/copilot-workflow-demo