-
Notifications
You must be signed in to change notification settings - Fork 313
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
Increase Pnpm's fun test coverage a bit #9341
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9341 +/- ##
=========================================
Coverage 67.47% 67.47%
Complexity 1200 1200
=========================================
Files 241 241
Lines 8506 8506
Branches 904 904
=========================================
Hits 5739 5739
Misses 2403 2403
Partials 364 364
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
afc30ba
to
781dca1
Compare
@@ -1,7 +1,7 @@ | |||
{ | |||
"name": "npm-project-that-depends-on-babel", | |||
"version": "1.0.0", | |||
"lockfileVersion": 2, | |||
"lockfileVersion": 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For completeness, could you add to the commit message which version of NPM was used to recreate the lockfile? I noticed that the lockfile format version changed, but I guess that's ok as this specific test does not depend on it.
@@ -0,0 +1,13 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message:
- "to have more confidence from it in an upcoming refactoring" -> "to have more confidence for an upcoming refactoring"
- 'package.json' should use backticks instead of single quotes
- Just a proposal: "fun test" -> "funTest" or "functional test"
@@ -41,6 +41,15 @@ class PnpmFunTest : WordSpec({ | |||
result.toYaml() should matchExpectedResult(expectedResultFile, definitionFile) | |||
} | |||
|
|||
"resolve dependencies for a project depending on babel correctly" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "babel" -> "Babel"
Prepare for an upcoming change which intends to add an analog, comparable test case for Pnpm. Note: The lockfile has been updated with Npm version 10.8.3. Signed-off-by: Frank Viernau <[email protected]>
781dca1
to
37b08b5
Compare
Increase the test coverage to have more confidence for an upcoming refactoring. Use the same `package.json` as for the analog NPM fun test, for comparison in the hope to get some new insights. Note: The lockfile has been created with Pnpm version 9.9.0 Signed-off-by: Frank Viernau <[email protected]>
37b08b5
to
49ee322
Compare
Add the babel test analog to the one for NPM, for comparability.
Part of #9261.