Repository navigation
test(impact): fixture for a vite.config-only change in a Vitest project - #109
Merged
adityankale190895 merged 1 commit intoNov 11, 2026
Merged
Conversation
Vitest reads its test block from vite.config.* when there is no vitest.config.*. Record that a change to only vite.config.ts or .mjs (test.include or resolve.alias), at the root or in a package directory, falls back to a full run through the language/framework configuration rule, with every test selected. Closes DiffCI#98 Signed-off-by: sarankumar1325 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
adityankale190895
added a commit
that referenced
this pull request
Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityankale190895 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #98
Fixture
New
tests/repo/vite-config-change.test.ts. For each case it builds a temporary git repository with a small Vitest project:viteandvitestin devDependencies,vitest runas the test script, avite.config.*that has atestblock (includeplus aresolve.alias), novitest.config.*, and two sources each with its own test. The head commit changes only the Vite config. Then the test runsanalyzeCheckout.Cases:
test.includeedit invite.config.ts(narrows the include to one test)resolve.aliasedit invite.config.tstest.includeedit invite.config.mjstest.includeedit inpackages/web/vite.config.ts(config in a package directory)Each case checks: mode
FULL,fallbackRequired, both tests selected, nothing skipped, and the reasonLanguage/framework configuration changed: <path>.Is today's behaviour safe?
Yes.
CONFIG_PATTERNSingit-diff.tsdoes not listvite.config., as the issue says. But the impact analyzer's language/framework rule (src/repo/impact.ts,(?:vite|vue|nuxt)\.config\.[^/]+, which matches at any depth) andisConfigFileboth cover it. So every case falls back to the full suite, and DiffCI never selects fewer tests than atest.includechange could affect. This PR changes no source code. It only pins that behaviour with a regression test, so a later narrowing of the framework-config rule would fail here.The new test is registered in
release-files.json.Validation
npm test: 903 passed.npm run typecheckis clean, and so isnpm run audit:boundary.