Skip to content

refactor: improve snapshot diff #69

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

Merged
merged 3 commits into from
Dec 12, 2021
Merged

refactor: improve snapshot diff #69

merged 3 commits into from
Dec 12, 2021

Conversation

tony-go
Copy link
Contributor

@tony-go tony-go commented Dec 11, 2021

Hi there 👋

Just start to work on issue #36

Finally found where all the magic happen (🙈 thanks to vscode debugger).

@tony-go tony-go self-assigned this Dec 11, 2021
@tony-go
Copy link
Contributor Author

tony-go commented Dec 11, 2021

Next steps:

  • detect when it's a snapshot context
  • detect when payloads are huge (big string or big object)
  • adapt diff according to these cases

Note: we probably could split the display methods from formatting ones

@tony-go tony-go added the enhancement New feature or request label Dec 11, 2021
@antfu antfu changed the title feat(cli): improve snapshot diff [DRAFT] refactor: improve snapshot diff Dec 12, 2021
@antfu antfu merged commit 70da5c7 into main Dec 12, 2021
@antfu antfu deleted the tonygo/snapshot-diff branch December 12, 2021 00:26
@antfu
Copy link
Member

antfu commented Dec 12, 2021

The refactoring looks good, I'll merge it for now. We could improve it incrementally in multiple PRs.

@tony-go
Copy link
Contributor Author

tony-go commented Dec 12, 2021

The refactoring looks good, I'll merge it for now. We could improve it incrementally in multiple PRs.

Neat! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants