refactor(bundler-tests): split webpack tests into webpack-4 and webpack-5#6098
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6098 +/- ##
=======================================
Coverage 95.16% 95.16%
=======================================
Files 316 316
Lines 9220 9220
Branches 2080 2080
=======================================
Hits 8774 8774
Misses 446 446 🚀 New features to boost your workflow:
|
a99e3c5 to
c738d2e
Compare
c738d2e to
a7eb83b
Compare
| "examples/http", | ||
| "examples/https", | ||
| "examples/esm-http-ts", | ||
| "bundler-tests/browser/*" |
There was a problem hiding this comment.
Bundler test packages are not workspaces because npm is unable to install two versions of webpack.
pichlermarc
left a comment
There was a problem hiding this comment.
Hmm - maybe I'm misunderstanding - but it looks to me that this now tests whatever is on npmjs.com rather than testing what we have locally. With this change we would only realize something's wrong after publishing to npmjs.com, right?
9e31484 to
3f68257
Compare
@pichlermarc I've used this pattern before but forgot to use relative links after removing the workspace entries. Great catch, thank you |
Which problem is this PR solving?
The existing webpack bundler test only tested webpack 5. This PR adds webpack 4 testing to ensure compatibility with both major versions of webpack.
Changes
bundler-tests/browser/webpack/into separatewebpack-4/andwebpack-5/directories.gitignoreto excludedist/directoriespackage.json(bundler tests are not workspaces)Type of change