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

feat: add more options to Deno.inspect #19337

Merged
merged 4 commits into from
Jun 5, 2023

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Jun 1, 2023

@crowlKats crowlKats requested a review from kt3k June 1, 2023 11:57
@kt3k
Copy link
Member

kt3k commented Jun 1, 2023

Note: std's snapshot testing feature uses Deno.inspect as the serializer of target object. ref: https://github.com/denoland/deno_std/blob/fdabe55e2dd29df626ecb5b4496b091478298eaf/testing/snapshot.ts#L199-L208

The way of Deno.inspect to serialize long string values are changed in #18691 and now the string snapshots have a lot of noise and very uncomfortable to compare.

This PR tries to restore the previous behavior optionally and prepares for addressing denoland/std#3404

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@crowlKats crowlKats merged commit 08bd239 into denoland:main Jun 5, 2023
10 checks passed
@crowlKats crowlKats deleted the more_inspect_options branch June 5, 2023 10:26
bartlomieju pushed a commit that referenced this pull request Jun 8, 2023
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.

None yet

3 participants