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

test: add more snapshots to replace individual assert(fs.existsSync(...)) #359

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

mmaietta
Copy link
Contributor

@mmaietta mmaietta commented Mar 7, 2025

verifySmartUnpack significantly simplifies asar verification and automatically snapshots the asar's unpacked directory with content verification (.txt and .json). Note: This is not net-new test functionality.

This PR explicitly adds more coverage/verifications to each unit test and removes usages of fs.existsSync since it's automatically covered in the verifySmartUnpack snapshot

@mmaietta mmaietta marked this pull request as ready for review March 7, 2025 19:29
@mmaietta mmaietta requested a review from a team as a code owner March 7, 2025 19:29
Copy link
Member

@erickzhao erickzhao left a comment

Choose a reason for hiding this comment

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

Awesome!

@erickzhao erickzhao changed the title test: adding more test snapshots to replace individual assert(fs.existsSync(...)) test: add more snapshots to replace individual assert(fs.existsSync(...)) Mar 7, 2025
@erickzhao erickzhao merged commit c95e851 into electron:main Mar 7, 2025
12 checks passed
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.

2 participants