Skip to content

docs(oracles-setup): document Vitest filter syntax for test:oracles script - #191

Open
schiller-manuel wants to merge 2 commits into
mainfrom
docs/oracles-setup-vitest-script
Open

schiller-manuel wants to merge 2 commits into
mainfrom
docs/oracles-setup-vitest-script

Conversation

@schiller-manuel

Copy link
Copy Markdown

Summary

  • Clarify in 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 like vitest run tests/**/*oracle*.test.ts fails with No test files found.
  • Provide concrete test:oracles examples 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 build
  • pnpm run format:check
  • pnpm run lint:check
  • pnpm --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

…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>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 04cddf5a-ec56-4e99-853c-28f594d42dff
Commits

Reviewing files that changed from the base of the PR and between 7b6bae1 and 7bce4b3.

Files selected for processing: 1

  • packages/oracles/skills/oracles-setup/SKILL.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7bce4b3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@191
npm i https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@191

commit: 6d9c2cf

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants