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: clear storage after each test #548

Merged
merged 1 commit into from
Dec 28, 2024
Merged

test: clear storage after each test #548

merged 1 commit into from
Dec 28, 2024

Conversation

43081j
Copy link
Member

@43081j 43081j commented Dec 28, 2024

Clears the storage after each test such that they no longer rely on run order, etc.

Note that the two snapshot tests have been massively dumbed down. Though I'm not sure this is a problem since the underlying driver tests already test the data types etc. Leaving these to purely test that a snapshot can be produced.

let me know what you think

Clears the storage after each test such that they no longer rely on run
order, etc.
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

This is much cleaner thnx ❤️

@pi0 pi0 changed the title test: purge storage after each test test: clear storage after each test Dec 28, 2024
@pi0 pi0 merged commit 7e912b0 into unjs:main Dec 28, 2024
2 checks passed
@43081j 43081j deleted the test-cleanup branch December 28, 2024 17:47
Copy link

codecov bot commented Dec 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.59%. Comparing base (4d61c78) to head (90f26bc).
Report is 153 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #548      +/-   ##
==========================================
- Coverage   65.05%   58.59%   -6.47%     
==========================================
  Files          39       43       +4     
  Lines        4055     3649     -406     
  Branches      487      580      +93     
==========================================
- Hits         2638     2138     -500     
- Misses       1408     1507      +99     
+ Partials        9        4       -5     

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

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