Skip to main content
Run any Skill in Manus
with one click

scaffold-tests

Stars84
Forks3
UpdatedMay 7, 2026 at 07:03

Scaffold Vitest unit/integration tests for pracht routes, loaders, and middleware. Asks the user once whether to use vitest browser mode with `vitest-browser-preact` (real DOM, real events) or classic JSDOM-based tests with `@testing-library/preact`. Wires `vitest.config.ts`, mocks `LoaderArgs`, and emits ready-to-run files. Use when asked to "scaffold tests", "set up Vitest", "add unit tests", "test this loader", or "test this route".

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly