◐ Shell
reader mode source ↗
Skip to content

BridgeJS: show unified diff on snapshot mismatch#600

Merged
kateinoigakukun merged 1 commit into
mainfrom
katei/956b-bridgejs-update
Feb 8, 2026
Merged

BridgeJS: show unified diff on snapshot mismatch#600
kateinoigakukun merged 1 commit into
mainfrom
katei/956b-bridgejs-update

Conversation

@kateinoigakukun

Copy link
Copy Markdown
Member

Motivation

Snapshot failures only reported file paths, making it slow to see what changed.

Overview

Enhance BridgeJS snapshot assertion to write the .actual file, run diff -u, and include the unified diff in the expectation message.

Copilot AI 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.

Hide comment

Pull request overview

Improves BridgeJS snapshot test failure diagnostics by emitting an .actual file and including a unified diff in the test failure message to make mismatches easier to inspect.

Changes:

  • Write <snapshot>.actual on mismatch and include a diff -u unified diff in the expectation message.
  • Add a helper to run diff via Process and capture its output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Hide details View details @kateinoigakukun kateinoigakukun merged commit 180c010 into main Feb 8, 2026
16 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/956b-bridgejs-update branch February 8, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants