Rechercher

PythonReactSEOPDF
GitHub Skill

vitest-targeted-testing

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

localtaskrepo☆ 1 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

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.

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-01-26
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

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