| name | test |
| description | Run unit tests for the project. Use when the user asks to test, verify, or check code correctness. |
| argument-hint | [module] |
| disable-model-invocation | true |
| allowed-tools | Bash(npx tsc *), Bash(npx mocha *), Bash(npm run *) |
Run Unit Tests
Compile and run the unit test suite for this VSCode extension project.
Steps
-
Compile TypeScript tests:
npx tsc -p . --outDir out
-
Run unit tests based on arguments:
-
Analyze results:
- If all tests pass, report the count and time.
- If any tests fail, read the failing test file and the source file it tests, diagnose the root cause, and suggest a fix.
Available modules
| Module | Tests | Source |
|---|
parser | src/test/parser/*.test.ts | src/parser/ |
analyzer | src/test/analyzer/*.test.ts | src/analyzer/ |
codeActions | src/test/codeActions/*.test.ts | src/codeActions/ |
rules | src/test/rules/*.test.ts | src/rules/ |