mirror of
https://github.com/langgenius/dify.git
synced 2026-05-28 21:03:22 +08:00
docs(web): use pnpm test commands
This commit is contained in:
@ -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 │
|
||||
└────────────────────────────────────────┘
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user