docs(AGENTS): update linting and testing instructions for improved efficiency

This commit is contained in:
bowenliang123 committed 2026-10-13 22:53:31 +08:00
1 parent f348196d3b
commit c27d082502
2 files changed
+13 -10

No files matched your search

+12 -9
View File
@@ -41,15 +41,18 @@ Complete ALL of these before ANY commit:
- Review the full diff independently: every change necessary, correct, and not over-engineered.
- Clean up generated temporary files and temporary or unhelpful comments.
- Load the [code-review](https://github.com/mattpocock/skills/tree/main/skills/engineering/code-review) skill if available, run it to review all the changes, and independently verify or follow each of its suggestions when its multi-axis analysis done.
- Run `pnpm run lint:fix && pnpm run test && pnpm run build` as a single command and capture the FULL output.
- Example for per-file 100% coverage output:
```
% Coverage report from v8
-------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------|---------|----------|---------|---------|-------------------
-------------------------|---------|----------|---------|---------|-------------------
```
- Run the following commands concurrently for maximum efficiency
- First, run `pnpm run lint` to fix all lint errors.
- Second, run `pnpm run typecheck` to fix all type errors.
- Third, run `pnpm run coverage` to run and ensure 100% per-file coverage. Please capture the ALL content of the full output without truncation or tailing.
- Example for per-file 100% coverage output:
```
% Coverage report from v8
-------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-------------------------|---------|----------|---------|---------|-------------------
-------------------------|---------|----------|---------|---------|-------------------
```
## Layout & responsive
+1 -1
View File
@@ -45,7 +45,7 @@
"web": "bash scripts/web.sh",
"register": "bash scripts/register.sh",
"typecheck": "tsc --noEmit -p tsconfig.tests.json --incremental",
"test": "pnpm run typecheck && vitest run --coverage",
"test": "vitest run --coverage",
"coverage": "vitest run --coverage",
"release": "bash scripts/publish.sh",
"social-preview": "node scripts/social-preview/generate.ts",