Skip to content

test: a root Vitest config without isolation gets no selected command - #149

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:test/vitest-root-isolation
Nov 16, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:test/vitest-root-isolation

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #126

This is a test-only change. The detection and the refusal are untouched.

There's a new tests/planner/vitest-isolation.test.ts, added to release-files.json. Each case writes a small temporary repository: package.json with vitest as a dev dependency and test: "vitest run", package-lock.json, a root vitest.config.ts (defineConfig({ test: ... })), src/value.ts and src/value.test.ts. It then calls planSelectiveTestCommands(analyzeRepository(...), ["src/value.test.ts"]).

  • test: { isolate: false }: no commands, refusalReason is exactly Non-isolated or ambiguous Vitest isolation requires full validation, and the test file is left in unroutedPaths.
  • test: { poolOptions: { threads: { isolate: false } } }: same.
  • test: { isolate: process.env.CI !== undefined } (not a literal): same.
  • test: { isolate: true }: refusalReason is undefined, and a command is emitted that names src/value.test.ts.

Mutation check: with runtimeIsolationUnsafe forced to return false, the three refusal cases fail and the isolate: true case still passes.

npm test gives 1078 passed. npm run typecheck and npm run audit:boundary pass.

Signed off for the DCO. Written with an AI coding assistant; I reviewed the test and ran the checks.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T09:09:01.065992Z 38c1e32 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adityankale190895
adityankale190895 merged commit 62aa18a into DiffCI:main Nov 16, 2026
13 checks passed
adityankale190895 added a commit that referenced this pull request Nov 16, 2026
Rewrite the README entry as prose grouped by area, covering #145-#150 that the
credit job appended as raw titles, and credit #149/#150 next to the
no-runnable-command table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
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.

Test: a root Vitest config with isolate: false gets no selected command

2 participants