pino-debug icon indicating copy to clipboard operation
pino-debug copied to clipboard

Update dependencies (fixed)

Open 10xLaCroixDrinker opened this issue 1 year ago • 3 comments

Fixes the issues in #105

Updating to tap@18 resolved the issue of tests failing when running via tap CLI. However, tap migrated its coverage collection to c8 which uses v8's built-in coverage tooling, and deleting entries from the require cache in the test suite broke the coverage reporting. So I added nyc for coverage collection. I enabled the use-spawn-wrap option in nyc because without it the tests in child processes broke due of how nyc affects stdio in child processes. This does mean though that the coverage from those tests is not counted now. Hence the added istanbul ignore statement in index.js.

dependency-check is deprecated, so I replaced it with knip. There was a reference to a non-existent npm run deps script so I added knip there, and I added scripts to allow standard to be run on its own.

I also updated the scripts that test individual versions of debug so they wouldnt modify the package.json or lockfile and gave them a cleanup script to restore the previously installed version of debug on completion.

10xLaCroixDrinker avatar Mar 18 '24 18:03 10xLaCroixDrinker

In order for this to go in the test matrix would have to change. tap 18 requires Node 16. Standard requires Node 12.22 and knip requires Node 16 as well, but those don't really need to be run on a whole matrix.

Is that something we can change?

10xLaCroixDrinker avatar Mar 20 '24 06:03 10xLaCroixDrinker

We can 100% dump everything but v18 and v20.

mcollina avatar Mar 20 '24 13:03 mcollina

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (ec18197) to head (ad7b1f6). Report is 1 commits behind head on master.

:exclamation: Current head ad7b1f6 differs from pull request most recent head aaca32e. Consider uploading reports for the commit aaca32e to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #131      +/-   ##
===========================================
+ Coverage   98.00%   100.00%   +2.00%     
===========================================
  Files           2         2              
  Lines          50        48       -2     
===========================================
- Hits           49        48       -1     
+ Misses          1         0       -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Mar 20 '24 13:03 codecov-commenter

Is it merged?

OleksandrKucherenko avatar Oct 08 '24 09:10 OleksandrKucherenko