From 6d9c2cfd0c83f5206ea4a7f1ac7de059196e6ea4 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Mon, 23 Nov 2026 11:37:24 +0100 Subject: [PATCH] docs(oracles-setup): document Vitest filter syntax for test:oracles script Vitest treats positional CLI arguments as substring/regex file filters rather than globs, so passing an unexpanded glob such as tests/**/*oracle*.test.ts fails with 'No test files found'. Document this in oracles-setup step 3 with examples for both a shared config ('vitest run oracle') and a separate config ('vitest run --config vitest.oracle.config.ts'). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- packages/oracles/skills/oracles-setup/SKILL.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/oracles/skills/oracles-setup/SKILL.md b/packages/oracles/skills/oracles-setup/SKILL.md index 233c0f1..638cdc4 100644 --- a/packages/oracles/skills/oracles-setup/SKILL.md +++ b/packages/oracles/skills/oracles-setup/SKILL.md @@ -144,10 +144,15 @@ If the production source uses syntax that Vite cannot parse (Flow types, for example), add a Vite plugin to the oracle config that strips it, such as one built on `flow-remove-types`. -Add a script for it, such as `test:oracles`. Leave the existing suite -unchanged. In a published package, keep the new files out of the published -package (its `files` field or `.npmignore`): the configs, the instruction file, -`.agents/`, and `.claude/`. +Add a script for it, such as `test:oracles`. Vitest treats positional CLI +arguments as substring/regex file filters, not globs, so passing a glob like +`vitest run tests/**/*oracle*.test.ts` fails with `No test files found` when +unexpanded. Use a substring filter when sharing the Vitest config +(`"test:oracles": "vitest run oracle"`), or point at the separate config +(`"test:oracles": "vitest run --config vitest.oracle.config.ts"`). Leave the +existing suite unchanged. In a published package, keep the new files out of +the published package (its `files` field or `.npmignore`): the configs, the +instruction file, `.agents/`, and `.claude/`. If the repository's own lint or formatter covers the oracle files (for example, an older ESLint with Prettier over `test/`), keep the oracle files