Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING(testing/snapshot): fix regression of serialization of long strings #3507

Merged
merged 2 commits into from
Jul 29, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jul 28, 2023

Now the snapshots of long strings are split into additions of smaller string, and those are very hard to read as pointed in #3404. This behavior is unintentionally introduced by the merge of Deno.inspect and util.inspect (Node compat). ref: denoland/deno#18691

This PR uses breakLength: Infinity option of Deno.inspect (which was added in denoland/deno#19337), and restores the original behavior.

fixes #3404

cc @oscarotero

Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

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

LGTM

@oscarotero
Copy link

Oh, thanks a lot for this!!

@kt3k kt3k merged commit 5be01a0 into denoland:main Jul 29, 2023
8 checks passed
@kt3k kt3k deleted the fix-snapshot-long-string branch July 29, 2023 09:30
lambdalisue added a commit to lambdalisue/vim-gin that referenced this pull request Aug 6, 2023
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.

Snapshots break after Deno 1.33.2
3 participants