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

Increase Pnpm's fun test coverage a bit #9341

Merged
merged 2 commits into from
Oct 25, 2024
Merged

Increase Pnpm's fun test coverage a bit #9341

merged 2 commits into from
Oct 25, 2024

Conversation

fviernau
Copy link
Member

Add the babel test analog to the one for NPM, for comparability.

Part of #9261.

@fviernau fviernau requested a review from a team as a code owner October 25, 2024 08:30
@fviernau fviernau enabled auto-merge (rebase) October 25, 2024 08:32
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.47%. Comparing base (2161ffd) to head (49ee322).
Report is 2 commits behind head on main.

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           
Flag Coverage Δ
funTest-docker 60.59% <ø> (ø)
funTest-non-docker 33.57% <ø> (ø)
test 37.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -1,7 +1,7 @@
{
"name": "npm-project-that-depends-on-babel",
"version": "1.0.0",
"lockfileVersion": 2,
"lockfileVersion": 3,
Copy link
Member

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 @@
{
Copy link
Member

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" {
Copy link
Member

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]>
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]>
@fviernau fviernau merged commit 61c4721 into main Oct 25, 2024
23 checks passed
@fviernau fviernau deleted the pnpm-test-coverage branch October 25, 2024 11:59
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