Search

PythonReactSEOPDF
GitHub Skill

vitest-targeted-testing

Use this when adding/fixing UI or smoke tests; prefer targeted Vitest runs first, then widen.

localtaskrepo☆ 1 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

Frontend (UI) tests

  • Full run:

    • npm run test:ui
  • Target by test name:

    • npm run test:ui -- -t "<substring>"
  • Target a single file:

    • npm run test:ui -- view/<path>/<file>.test.ts

Smoke suite (Vitest + Playwright harness)

  • Full smoke (builds first):

    • npm run smoke
  • Quick smoke (no rebuild):

    • npm run test:smoke:quick
  • Target by test name:

    • npm run test:smoke:quick -- -t "<substring>"
  • Debug a single test in-process:

    • npx vitest watch --config smoke/vitest.config.ts --runInBand

Lint/typecheck

  • Frontend typecheck: npm run lint:frontend

Strategy

  • Start as narrow as possible (one test/file).
  • If failures look environment-related, pivot to the smoke debugging runbook.

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-26
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!