Conversation
This reverts commit 1e36e49.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
None of these changes affect:
These changes have zero impact on E2E test outcomes. No E2E tags need to run. Performance Test Selection: |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|



Description
Adds an ESLint enforcement to phase out Jest file-based snapshots.
Test files (.test./.spec.) now error on expect(...).toMatchSnapshot() via jest/no-restricted-matchers, encouraging toMatchInlineSnapshot() or explicit assertions instead.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: adds a test-only ESLint restriction and a devDependency update; no runtime code paths are affected. Potential friction is limited to new/modified Jest tests that currently use
toMatchSnapshot().Overview
Adds a new ESLint override for
*.test.*/*.spec.*files that errors onexpect(...).toMatchSnapshot(), pushing tests towardtoMatchInlineSnapshot()or explicit assertions to phase out file-based snapshots.Updates tooling by adding
eslint-plugin-jest(and lockfile resolution) to support the new lint rule.Reviewed by Cursor Bugbot for commit 4ae43d1. Bugbot is set up for automated code reviews on this repo. Configure here.