Repository navigation
feat(snaps-vitest): add Vitest environment and matchers - #4175
Open
ulissesferreira wants to merge 1 commit into
Open
ulissesferreira wants to merge 1 commit into
ulissesferreira wants to merge 1 commit into
Conversation
ulissesferreira
force-pushed
the
feat/snaps-vitest-implementation
branch
3 times, most recently
from
November 5, 2026 21:19
3d86932 to
9c83759
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/snaps-vitest-package #4175 +/- ##
============================================================
Coverage ? 98.69%
============================================================
Files ? 429
Lines ? 12533
Branches ? 1986
============================================================
Hits ? 12369
Misses ? 164
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ulissesferreira
force-pushed
the
feat/snaps-vitest-implementation
branch
from
November 6, 2026 09:45
9c83759 to
121f10d
Compare
This branch has not been deployed
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.
Summary
Adds the full
@metamask/snaps-vitestimplementation on top of #4174. It is a Vitest port of@metamask/snaps-jest, with the same end-to-end testing API.Key adaptation to this monorepo:
snaps-controllers,snaps-sdk,snaps-simulation, andsnaps-utils.^3.1.1, matching the version already installed here, and the Vitest 3 environment API (transformMode).esbuild(jsx: 'automatic',jsxDev: false), matching the production Snaps runtime.@metamask/snaps-utils/test-utilsinstead of the vendored test-utils shim used in the standalone project.AssertionandAsymmetricMatchersContaininginterfaces.Evidence
After:
yarn workspace @metamask/snaps-vitest run build,lint, andtestpass.getSnapsVitestConfig+ packeddist: 1 passed.internal-snapsintegration suite against the built package (fresh regtest chain): 53 passed / 7 skipped, matching the Jest baseline.snaps-jest(4 files) against the built package: 15 passed / 1 skipped, matching the Jest baseline.Merge Danger
Door: two-way
Blast Radius: low
New package only; the shared-file wiring is in #4174. Merge #4174 first.