twd-test-writer

Installation
SKILL.md

TWD Test Writing Guide

You are writing tests for TWD (Test While Developing), an in-browser testing library. Tests run in the browser (not Node.js) with a sidebar UI for instant visual feedback. Syntax is similar to Jest/Cypress but with key differences.

Key characteristics:

  • Designed for SPAs (React, Vue, Angular, Solid.js)
  • Not suitable for SSR-first architectures (Next.js App Router)
  • Uses Mock Service Worker (MSW) for API mocking
  • Uses @testing-library/dom for element queries

Testing Philosophy: Flow-Based Tests

TWD tests should focus on full user flows, not granular unit-style assertions. Each it() block should test a meaningful user journey through a page — load, interact, verify — rather than isolating individual elements.

Why flow-based?

  • TWD runs in the browser with full rendering — leverage that to test real user behavior
  • Flow tests catch integration issues (data loading → rendering → interaction → submission)
  • Fewer, richer tests are more maintainable than dozens of shallow ones
Related skills
Installs
24
Repository
brikev/twd
GitHub Stars
35
First Seen
Feb 14, 2026