write-tests

Installation
SKILL.md

Write Tests

Overview

Write tests that prove behavior with the smallest useful fixture surface. Use Remix's own test/assert packages and describe/it style by default, keep package dependency graphs clean, and validate with the narrowest reliable commands.

Workflow

  1. Read the nearest package.json, tsconfig.json, and existing sibling tests before choosing a runner or fixture style.
  2. Identify whether the package can depend on @remix-run/test, or whether it is a dependency of @remix-run/test and must avoid a circular dependency.
  3. Keep the test close to the behavior owner. Prefer local helpers and direct Web/Node primitives over importing higher-level workspace packages as fixtures.
  4. Put test-only workspace packages in devDependencies with workspace:^; do not add them to runtime dependencies.
  5. Run the package test and typecheck commands. Refresh pnpm-lock.yaml when package metadata changes.

Runner Choice

Related skills
Installs
2
Repository
remix-run/remix
GitHub Stars
32.9K
First Seen
Apr 30, 2026