Repository navigation
Conversation
18 of 41 tasks
|
Size Change: 0 B Total Size: 7.76 MB |
This was referenced Jul 29, 2026
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.
What?
Part of #80855. Stacked on #80865; review only the fifth commit in this PR.
TL;DR — snapshot parity: Replaces the private Vitest dependency on
snapshot-diffwith public Vitest snapshot APIs, ports the style-diff and popover matchers, and proves the Emotion serializer format before snapshot-heavy packages move.Why?
Snapshot consumers must not migrate until their custom matchers and serializers have a verified Vitest implementation. This isolates snapshot-format changes from later component-test migrations and keeps
snapshot-diffavailable only to the remaining Jest partition.How?
toMatchDiffSnapshotandtoMatchStyleDiffSnapshotwith Vitest's publicSnapshotsAPI and matcher-context diff utilities.toBePositionedPopoverwith explicit Vitest imports.@emotion/styledto the test-infrastructure workspace that directly imports it.No existing baseline snapshot was regenerated or changed. This PR adds two reviewed compatibility snapshot files:
EmptyBoxlabel and normalizedemotion-0class, while the non-empty CSS format is reviewed inline.The Jest partition retains
snapshot-diff, its serializer, and existing consumers until those packages migrate.Testing Instructions
npm run test:unit:routing; expect 995 Jest baseline files, 1 Vitest baseline file, and 4 added Vitest compatibility files.npm run test:unit:vitest -- --reporter=dot; expect 5 files and 33 tests to pass.--shard=N/4partitions and confirm every shard passes.npm run lint:pkg-json,npm run lint:lockfile, andgit diff --check.Locally verified routing, the complete Vitest partition, all four shards, targeted strict ESLint, package and lockfile validation, formatting, and pre-commit checks.
Testing Instructions for Keyboard
Not applicable; this PR does not change UI behavior.
Screenshots or screencast
Not applicable.
Use of AI Tools
Codex was used to inspect the existing Jest snapshot behavior, verify Vitest's public matcher and snapshot APIs, implement the compatibility layer, review each new snapshot, and run the reported checks. The resulting changes and claims were reviewed against the repository configuration.