docs(web): use pnpm test commands

This commit is contained in:
yyh
2026-05-10 22:25:06 +08:00
parent fd9374a375
commit 28d5c09b90
2 changed files with 9 additions and 9 deletions

View File

@ -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 <path>
@ -159,7 +159,7 @@ describe('ComponentName', () => {
For each file:
┌────────────────────────────────────────┐
│ 1. Write test │
│ 2. Run: vp run test <file>.spec.tsx │
│ 2. Run: pnpm test <file>.spec.tsx
│ 3. PASS? → Mark complete, next file │
│ FAIL? → Fix first, then continue │
└────────────────────────────────────────┘

View File

@ -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