diff --git a/notes/design.md b/notes/design.md index 3404e27..8db8d13 100644 --- a/notes/design.md +++ b/notes/design.md @@ -3364,13 +3364,13 @@ oxlint はスレッド 1 本につき約 6.4 GB のアドレス空間を予約 ### 14.10 テストの穴、2026-09-08 棚卸し -**検証方法を先に。** カバレッジ率ではなく**変異テスト**で見る。ソースの一箇所を壊し、`ne vp test +**検証方法を先に。** カバレッジ率ではなく**変異テスト**で見る。ソースの一箇所を壊し、`vp test tests/lint` が落ちるかを確かめる。落ちなければ、そこはテストが 1 行も守っていない。 ```sh cp src/lint/rules/equals/paths.ts /tmp/m.bak perl -0pi -e 's/const found = \[path\];/const found = [path];\n return found;/' src/lint/rules/equals/paths.ts -ne vp test tests/lint # 通ってしまうなら未カバー +vp test tests/lint # 通ってしまうなら未カバー cp /tmp/m.bak src/lint/rules/equals/paths.ts ``` diff --git a/skills/proofread/SKILL.md b/skills/proofread/SKILL.md index a794853..a625fa3 100644 --- a/skills/proofread/SKILL.md +++ b/skills/proofread/SKILL.md @@ -110,8 +110,8 @@ git diff -U0 HEAD -- '*.md' | grep -nE 'is yours|are yours|yours to|hands? back| ## 4. Let the sample carry the claim -A claim that fits a sample belongs in a fenced block, where `ne vp test docs/tools/twoslash` checks -it on every run. A negative claim fits too: declare the error code the reader would hit, as +A claim that fits a sample belongs in a fenced block, where `vp test docs/tools/twoslash` checks it +on every run. A negative claim fits too: declare the error code the reader would hit, as `// @errors: 2339`. A code declared and never raised fails the test. Use a throwaway probe only where the claim stays in prose, or is about something the book does not @@ -130,6 +130,6 @@ Say plainly where a sentence's intent is unclear rather than guessing at a rewri Then run `vp fmt` on what changed, and the docs typecheck when a fenced sample moved: ```sh -ne vp fmt -ne vp test docs/tools/twoslash +vp fmt +vp test docs/tools/twoslash ``` diff --git a/skills/test-audit/SKILL.md b/skills/test-audit/SKILL.md index eb98eb4..b02835f 100644 --- a/skills/test-audit/SKILL.md +++ b/skills/test-audit/SKILL.md @@ -72,7 +72,7 @@ A test that passes whatever the source does. Break the source it covers, run it, red: ```sh -ne vp test tests/val.test.ts +vp test tests/val.test.ts ``` What to look for first: