Skip to content

test: record full fallback for Vitest reporter/timeout config edits - #65

Merged
adityankale190895 merged 1 commit into
mainfrom
test/vitest-config-fallback-53
Oct 30, 2026
Merged

adityankale190895 merged 1 commit into
mainfrom
test/vitest-config-fallback-53

Conversation

@adityankale190895

@adityankale190895 adityankale190895 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #53.

What changed

  • tests/repo/vitest-config-fallback.test.ts: synthetic-repository fixture. A vitest.config.ts edit that only changes the reporter, or only changes testTimeout, still yields configChanged=true, CONFIG_GLOBAL and fallbackRequired=true.
  • docs/design/config-narrowing.md: records the case as a narrowing candidate, with the conditions any narrowing must meet (statically recognizable configs, allowlisted fields only, provably identical test inclusion) and why reporters and timeouts are not automatically safe.
  • release-files.json: lists both new files so audit:boundary passes.

No behaviour change: this pins today's conservative fallback.

Attribution

The fixture and the narrowing conditions come from robertwmccarty-caelum's comment on #53, including the release-files.json fix from their follow-up. They asked for it to be added through the maintainer path rather than a fork PR; the commit credits them with a Co-authored-by trailer. The sign-off is the maintainer's. Their comment notes it was prepared with AI assistance for a human operator.

Validation

On main@2d5cc05 plus this change:

  • npm run typecheck: pass
  • npm test: 594/594 pass, 88 suites
  • npm run build: pass
  • npm run audit:boundary: pass (226 reviewed files)
  • Mutation check: removing /^vitest\.config\./ from CONFIG_PATTERNS makes both fixture cases fail.

🤖 Generated with Claude Code

A vitest.config.* edit that only adds a reporter or changes testTimeout
cannot change which tests Vitest collects, but it matches CONFIG_PATTERNS
and forces the full suite. Record that behaviour on a synthetic repository
so any future narrowing has to change the test deliberately, and document
the case and its safety conditions in docs/design/config-narrowing.md.

Fixture contributed by robertwmccarty-caelum in
#53 (comment)

Fixes #53

Co-authored-by: robertwmccarty-caelum <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
@adityankale190895
adityankale190895 force-pushed the test/vitest-config-fallback-53 branch from 34577f9 to 81f3a9f Compare October 30, 2026 05:18
@adityankale190895
adityankale190895 merged commit a1b95b3 into main Oct 30, 2026
14 checks passed
@adityankale190895
adityankale190895 deleted the test/vitest-config-fallback-53 branch October 30, 2026 05:28
adityankale190895 added a commit that referenced this pull request Nov 9, 2026
Their Vitest reporter/timeout fixture from #53 landed in #65 as a
co-authored commit, so GitHub lists them as a contributor, but the
README Contributors section had no entry. The design doc already
credits them.

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.

Fixture: Vitest config change that only adds a reporter

1 participant