Skip to content

fix(examples): update Vitest for the runnable TypeScript samples - #15825

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/11475-vitest-example-fixture
Nov 21, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/11475-vitest-example-fixture

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Refresh the two unlocked Vitest manifests used directly by the TypeScript discount example and infection-shapes fixture. Document the example's new Node.js prerequisite.

Swarm / Source Boundary

  • Ordinary dependency maintenance for the swarm development trunk.

Source-of-truth Links

Governing issue or accepted claim: #11475.
Plan item: #11475 (comment)
Acceptance delta (one sentence): Both TypeScript samples resolve a cleanly audited Vitest runner and keep their executable and static fixture behavior.

Candidate Relationships

Candidate branch: fix/11475-vitest-example-fixture. Independent of the Open VSX publisher fix #15821.

Scope

Only the two devDependency ranges, example prerequisite and changelog fragment change. Both original manifests are unlocked; the fixture spec refers to TypeScript behavior. The vendored upstream Werkzeug fixture retains its source identity.

Scope Classification

  • One architectural seam: the local Vitest test runner for two owned samples.

Support-tier Impact

The discount example documents Vitest's Node.js engine range (22.x from 22.12, 24.x, or 26+). Preview analyzer support is unchanged.

Policy Impact

  • Dependency. Preserve the existing caret range policy and test commands.

Proof

Fresh Linux resolution at 2026-11-20 produced 3.2.7 for the original example (2 critical and 1 moderate package entries), and 1.6.1 for the original fixture (2 critical, 1 high, 2 moderate). The older fixture also matches the Vitest UI advisory; the documented test command uses ordinary run mode. On Node 22.21.1/npm 10.9.4 the proposed 4.1.12 alternative failed on both fresh installs inside npm. Vitest 5.1.1 installed and executed on Node 22.21.1/npm 10.9.4, 24.1.0/npm 11.19.1 and 24.21.0/npm 11.19.0.

  • Ran ordinary npm install and npm test from disposable copies on all three clients. The example passed 2 tests and the fixture passed 12 tests each time.
  • Ran npm audit --json against both installed Node 22 graphs. All severities zero.
  • Restored the exclusive threshold in the disposable example. Its original two tests still passed. Its documented strengthened suite passed all three with the inclusive comparison and correctly failed the boundary assertion with the exclusive comparison.
  • Ran ripr check against both projects’ actual diffs, before/after, using the same native Windows analyzer (ab93e28). GitHub and SARIF output matched byte-for-byte. Human and JSON output matched after replacing the two absolute checkout prefixes.
  • check-changelog-fragments and git diff --check passed.

Claim Boundary

These are fresh graph audits and ordinary CLI fixture runs. The ranges are unlocked and future resolutions can change. This is defensive maintenance of development dependencies; it carries no release qualification or public registry action.

Rollback

Revert the four-file change. The previous manifests resolve the prior affected major versions.

Spec-Test-Code Traceability

Fixture SPEC.md binds RIPR-SPEC-0027. Its unchanged input/tests exercise all 12 cases; the example’s strengthened/pricing.test.ts supplies the threshold discriminator.

CI Economics

No workflow, runner or required proof changes.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

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: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 78be9088-5815-4d52-aecc-177090ce0b0b
Commits

Reviewing files that changed from the base of the PR and between dd3721b and e9d6255.

Files selected for processing: 4

  • changelog.d/11475-vitest-example-fixture.md
  • examples/typescript-discount-threshold/README.md
  • examples/typescript-discount-threshold/project/package.json
  • fixtures/typescript_infection_shapes/input/package.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Reviewed e9d6255 against GitHub merge subject 68bc059 and protected parent dd3721b. I checked both package manifests, the documented example contract and the published Vitest 5.1.1 engine range. The README expresses the engine branches correctly. Both roots still run vitest in ordinary run mode, with the same test files. The author's three-runtime installation tests cover actual execution, and the disposable equality control distinguishes the boundary assertion from the deliberately weak example. The eight analyzer comparisons cover the representation consumed by the fixture. The candidate preserves the existing unlocked caret-range convention. The zero audit is evidence for the exercised dependency resolution on November 20. No unresolved thread at this review.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 20, 2026 22:37
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Ready handoff for e9d6255. GitHub's merge ref is 68bc059, with ordered parents dd3721b and this exact head, tree cbb800135af73de7c4f2f78345c982b63712080f. The exact-head native source review is current. Both runner installs and suites passed on all three clients. The strengthened boundary case refused the exclusive variant. The actual admission body fields parse, with the renamed-field refusal checked locally. There are no outstanding inline findings and no prior routed qualification for this subject. The delivery owner will inspect the hosted checkout/required result and obtain final integration judgment before the protected queue request.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY

Reviewed e9d6255. I retain the exact source review of the two unlocked Vitest ranges, the documented Node runtime prerequisite and the unchanged analyzer input and test commands. The native Node 22 and 24 installations, the 2+12 suite executions, the disposable assertion control and the eight analyzer comparisons supply direct evidence for the dependency change. For this same head GitHub checked out 68bc059 and returned passing required Result 136635831153 on run 44830589328. No unresolved review thread. Ready for protected queue qualification.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 0903362 Nov 21, 2026
20 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/11475-vitest-example-fixture branch November 21, 2026 17:56
EffortlessSteven pushed a commit that referenced this pull request Nov 21, 2026
A full-range release-ledger rehearsal from 45b56c0 to main 7cf9cd6
(5,873 first-parent and 5,934 reachable commits) left one record
blocking_unresolved under the merged override set: 0903362 (#15825),
which raises the Vitest development dependency in the TypeScript starter
example and one fixture input. Its examples path is outside the v1 path
classes, like 14e6e6d (#14286) before it.

Record it as included_test_or_evidence. Re-derived from the same captured
facts, the ledger has zero unresolved rows and the dry-run validation
passes; that record is the only one that changes.

Refs #2768

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmvYqCdwBcBFx9a2bC
EffortlessSteven pushed a commit that referenced this pull request Nov 21, 2026
The reviewed-rows test pins each provisional override to its commit and
keeps an unreviewed commit with the same paths blocked. Add the 0903362
row and its examples path so the new override has the same control.

Refs #2768

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmvYqCdwBcBFx9a2bC
EffortlessSteven pushed a commit that referenced this pull request Nov 21, 2026
…fresh

Refs #2766
Refs #2768

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmvYqCdwBcBFx9a2bC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant