[PR #5127] [MERGED] replace snapshot-diff with jest-diff #47592

Closed
opened 2026-04-26 09:35:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5127
Author: @OlivierKamers
Created: 6/8/2025
Status: Merged
Merged: 6/8/2025
Merged by: @matt-fidd

Base: masterHead: oli/replace-snapshot-diff


📝 Commits (1)

  • 0ab197a chore: replace snapshot-diff and jest with jest-diff

📊 Changes

6 files changed (+64 additions, -1319 deletions)

View changed files

📝 packages/loot-core/package.json (+1 -2)
📝 packages/loot-core/src/mocks/util.ts (+9 -2)
📝 packages/loot-core/src/server/__snapshots__/main.test.ts.snap (+2 -4)
📝 packages/loot-core/src/server/transactions/__snapshots__/transfer.test.ts.snap (+10 -20)
upcoming-release-notes/5127.md (+6 -0)
📝 yarn.lock (+36 -1291)

📄 Description

Fixes #5026

This PR replaces snapshot-diff with jest-diff (NPM link)
Unlike the name suggests, jest-diff does not have a dependency on jest so this allows us to remove the jest dependency.

The diffs look slightly different by default, so I set the options to match the old diff snapshots as closely as possible.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5127 **Author:** [@OlivierKamers](https://github.com/OlivierKamers) **Created:** 6/8/2025 **Status:** ✅ Merged **Merged:** 6/8/2025 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `oli/replace-snapshot-diff` --- ### 📝 Commits (1) - [`0ab197a`](https://github.com/actualbudget/actual/commit/0ab197ad50d965c914a81b467bfc99bd10849160) chore: replace snapshot-diff and jest with jest-diff ### 📊 Changes **6 files changed** (+64 additions, -1319 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/package.json` (+1 -2) 📝 `packages/loot-core/src/mocks/util.ts` (+9 -2) 📝 `packages/loot-core/src/server/__snapshots__/main.test.ts.snap` (+2 -4) 📝 `packages/loot-core/src/server/transactions/__snapshots__/transfer.test.ts.snap` (+10 -20) ➕ `upcoming-release-notes/5127.md` (+6 -0) 📝 `yarn.lock` (+36 -1291) </details> ### 📄 Description Fixes #5026 This PR replaces `snapshot-diff` with `jest-diff` ([NPM link](https://www.npmjs.com/package/jest-diff)) Unlike the name suggests, jest-diff does not have a dependency on jest so this allows us to remove the `jest` dependency. The diffs look slightly different by default, so I set [the options](https://www.npmjs.com/package/jest-diff#example-of-options-to-limit-common-lines) to match the old diff snapshots as closely as possible. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-26 09:35:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#47592