Skip to content

feat(bazel): add diff output to failing api-golden tests#3627

Open
clydin wants to merge 1 commit intoangular:mainfrom
clydin:feat/api-golden-diff
Open

feat(bazel): add diff output to failing api-golden tests#3627
clydin wants to merge 1 commit intoangular:mainfrom
clydin:feat/api-golden-diff

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Apr 24, 2026

This commit adds unified diff output when api_golden_test fails, using the diff NPM package.

@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Apr 24, 2026
@clydin clydin force-pushed the feat/api-golden-diff branch from 42e66b4 to 97e2230 Compare April 24, 2026 17:57
@clydin clydin marked this pull request as ready for review April 24, 2026 18:46
@clydin clydin requested a review from josephperrott April 24, 2026 18:47
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the diff library to generate and display patches when API golden files are outdated. The reporting logic in index_npm_packages.cts has been updated to include these diffs. The reviewer suggested using console.error consistently for all parts of the failure report to ensure that diagnostic output is correctly handled in environments that separate standard output and standard error.

Comment thread bazel/api-golden/index_npm_packages.cts
Comment thread bazel/api-golden/index_npm_packages.cts
Comment thread bazel/api-golden/index_npm_packages.cts
This commit adds unified diff output when `api_golden_test` fails, using the `diff` NPM package.
@clydin clydin force-pushed the feat/api-golden-diff branch from 97e2230 to e7f080e Compare April 24, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant