image-minimizer-webpack-plugin
image-minimizer-webpack-plugin copied to clipboard
chore: disable some broken tests
This PR contains a:
- [ ] bugfix
- [ ] new feature
- [ ] code refactor
- [x] test update
- [ ] typo fix
- [ ] metadata update
Motivation / Use-Case
Because squooshLib
is broken on Windows and some Node versions:
- disable some tests for Windows and Nodejs > 14
- disable some tests for all and Nodejs > 16
Codecov Report
Base: 87.71% // Head: 87.71% // No change to project coverage :thumbsup:
Coverage data is based on head (
082cda2
) compared to base (a57fcdf
). Patch has no changes to coverable lines.
:exclamation: Current head 082cda2 differs from pull request most recent head 9410e66. Consider uploading reports for the commit 9410e66 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## master #349 +/- ##
=======================================
Coverage 87.71% 87.71%
=======================================
Files 4 4
Lines 643 643
Branches 243 243
=======================================
Hits 564 564
Misses 71 71
Partials 8 8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Maybe because one of snapshots becomes obsolete if I disable the test case that uses it. I don't know how to fix it
Test Suites: 13 passed, 13 total
Tests: 31 skipped, 173 passed, 204 total
Snapshots: 1 obsolete, 60 passed, 60 total
Time: 51.569 s
Ran all test suites.
Error: Process completed with exit code 1.
We can rewrite the snapshot test on simple except
, so we will not have condition tests (i.e. when we have snapshot on linux, but don't have it on windows)
I just replaced squoosh
with sharp
for this test. And some tests on macos now fail. Test on windows was canceled. 😕
@RAX7 Let's try to finish, thank you
Thank you for the PR, fixed in master, inspired by your code :star:
@alexander-akait Oh, that's great! And sorry for the late reply.