Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

test(sourcemaps): Assert injection outputs - #2483

#2483
Merged
szokeasaurusrex merged 1 commit into
mastergetsentry/sentry-cli:masterfrom
szokeasaurusrex/assert-inject-contentsgetsentry/sentry-cli:szokeasaurusrex/assert-inject-contentsCopy head branch name to clipboard
Apr 30, 2025
Merged

test(sourcemaps): Assert injection outputs#2483
szokeasaurusrex merged 1 commit into
mastergetsentry/sentry-cli:masterfrom
szokeasaurusrex/assert-inject-contentsgetsentry/sentry-cli:szokeasaurusrex/assert-inject-contentsCopy head branch name to clipboard

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Apr 30, 2025

Copy link
Copy Markdown
Member

Most of our tests for sourcemaps inject only assert the stdout of the command and its exit status, but do not verify that the injected files match our expectation.

This test introduces a generalized method to verify the outputs of the commands. The expected outputs have been copied from the actual outputs of the tests at the time of authoring this commit; I assume that the current behavior is the correct behavior.

Closes #2482

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/assert-inject-contents branch from b3f2396 to 102820b Compare April 30, 2025 12:33
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review April 30, 2025 12:57

@loewenheim loewenheim 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.

Nice, that's much cleaner.

@szokeasaurusrex
szokeasaurusrex merged commit 102820b into master Apr 30, 2025
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/assert-inject-contents branch April 30, 2025 14:37
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.

Test injection output

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.