From 28d5c09b90df8e136f6b9dd3cc4898cf28bca730 Mon Sep 17 00:00:00 2001 From: yyh Date: Sun, 10 May 2026 22:25:06 +0800 Subject: [PATCH] docs(web): use pnpm test commands --- .agents/skills/frontend-testing/SKILL.md | 10 +++++----- web/docs/test.md | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.agents/skills/frontend-testing/SKILL.md b/.agents/skills/frontend-testing/SKILL.md index 7f5fb4f50a..e723435b7e 100644 --- a/.agents/skills/frontend-testing/SKILL.md +++ b/.agents/skills/frontend-testing/SKILL.md @@ -43,16 +43,16 @@ Apply this skill when the user: ```bash # Run all tests -vp run test +pnpm test # Watch mode -vp run test --watch +pnpm test --watch # Run specific file -vp run test path/to/file.spec.tsx +pnpm test path/to/file.spec.tsx # Generate coverage report -vp run test --coverage +pnpm test --coverage # Analyze component complexity pnpm analyze-component @@ -159,7 +159,7 @@ describe('ComponentName', () => { For each file: ┌────────────────────────────────────────┐ │ 1. Write test │ - │ 2. Run: vp run test .spec.tsx │ + │ 2. Run: pnpm test .spec.tsx │ │ 3. PASS? → Mark complete, next file │ │ FAIL? → Fix first, then continue │ └────────────────────────────────────────┘ diff --git a/web/docs/test.md b/web/docs/test.md index 809cba4b5d..107d82588a 100644 --- a/web/docs/test.md +++ b/web/docs/test.md @@ -16,16 +16,16 @@ When I ask you to write/refactor/fix tests, follow these rules by default. ```bash # Run all tests -vp run test +pnpm test # Watch mode -vp run test --watch +pnpm test --watch # Generate coverage report -vp run test --coverage +pnpm test --coverage # Run specific file -vp run test path/to/file.spec.tsx +pnpm test path/to/file.spec.tsx ``` ## Project Test Setup