Skip to content

refactor(testing): do not use assertEquals() in snapshot.ts - #4930

Merged
kt3k merged 1 commit into
denoland:mainfrom
kt3k:refactor-snapshot
Jun 2, 2024
Merged

kt3k merged 1 commit into
denoland:mainfrom
kt3k:refactor-snapshot

Conversation

@kt3k

@kt3k kt3k commented Jun 2, 2024

Copy link
Copy Markdown
Contributor

Dependency to assertEquals from testing/snapshot was introduced in #3563 to avoid using non public API of assert from testing (That was necessary for a part of JSR migration).

Now those internal APIs diff, diffStr, and buildMessage are available from std/internal. This PR (partially) reverts #3563 and make testing/snapshot directly use those APIs from std/internal.

This unblocks #4893

@codecov

codecov Bot commented Jun 2, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.12%. Comparing base (388800f) to head (a9c712c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4930      +/-   ##
==========================================
- Coverage   92.12%   92.12%   -0.01%     
==========================================
  Files         487      487              
  Lines       38772    38763       -9     
  Branches     5388     5388              
==========================================
- Hits        35719    35710       -9     
  Misses       2997     2997              
  Partials       56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iuioiua iuioiua 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

@kt3k
kt3k merged commit 44bc900 into denoland:main Jun 2, 2024
@kt3k
kt3k deleted the refactor-snapshot branch June 2, 2024 10:28
@iuioiua iuioiua changed the title refactor(testing): do not use assertEquals in snapshot.ts refactor(testing): do not use assertEquals() in snapshot.ts Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants