Repository navigation
docs(oracles-setup): document Vitest filter syntax for test:oracles script - #191
schiller-manuel wants to merge 2 commits into
Conversation
…cript
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>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
commit: |
…example Vitest positional arguments are substring filters, not regexes. Drop "regex" from the step 3 note. `vitest run oracle` over-selects: it runs any file whose path contains "oracle". Lead the script example with the separate config, which selects only the oracle files. Explain the shared-config case and its limit: a substring misses oracle files whose names lack it, such as `oracle-x.test.ts` under the step 3 glob. Checked in a scratch project with the repo's Vitest 4.1.12: the separate config selects the three oracle files; `vitest run oracle` also selects `packages/oracles/tests/p.test.ts`; `.oracle.test` misses `oracle-b.test.ts` and `c-oracle.test.ts`; a quoted glob fails with "No test files found". Co-authored-by: Isaac <no-reply@databricks.com>
Summary
packages/oracles/skills/oracles-setup/SKILL.md(step 3) that Vitest treats positional CLI arguments as substring/regex file filters rather than globs, so an unexpanded glob likevitest run tests/**/*oracle*.test.tsfails withNo test files found.test:oraclesexamples for both a shared Vitest config ("test:oracles": "vitest run oracle") and a separate config ("test:oracles": "vitest run --config vitest.oracle.config.ts").Validation
pnpm run buildpnpm run format:checkpnpm run lint:checkpnpm --filter @tanstack/oracles run test(8 files, 117 tests passed)pnpm --filter @tanstack/eslint-plugin-oracles run test(15 files, 7335 tests passed)git diff --check