-
Notifications
You must be signed in to change notification settings - Fork 728
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
test-with-coverage is broken on node v16 #1130
Labels
Comments
nfischer
added a commit
that referenced
this issue
Aug 28, 2023
For some reason it seems like `nyc` v14 is incompatible with node v16/v18/v20. See this CI run as an example: https://github.com/shelljs/shelljs/actions/runs/5956710281/job/16287478757?pr=1129 This updates `nyc` to v15 which should fix the issue. Fixes #1130 Test: nvm use v16.20.2 Test: npm run test-with-coverage
This was referenced Aug 28, 2023
I confirmed this does not repro with So far the only workarounds I've identified are:
|
nfischer
added a commit
that referenced
this issue
Nov 11, 2023
No change to logic. This updates nyc (code coverage tool) to version 15. The main goal is to work around a bug on the latest nodejs LTS versions. This change indicates it only supports nodejs >= 8.9. Hopefully this is good enough for our purposes since ShellJS currently supports nodejs >= 8. Fixes #1130
nfischer
added a commit
that referenced
this issue
Nov 12, 2023
No change to logic. This updates nyc (code coverage tool) to version 15, which works around a breaking change that snuck into the latest Node LTS versions. Unfortunately, this version of nyc appears to break Node 8 and 9. We need to work around this problem by skipping test coverage on those versions. Fixes #1130
nfischer
added a commit
that referenced
this issue
Nov 12, 2023
No change to logic. This updates nyc (code coverage tool) to version 15, which works around a breaking change that snuck into the latest Node LTS versions. Unfortunately, this version of nyc appears to break Node 8 and 9. We need to work around this problem by skipping test coverage on those versions. Fixes #1130
nfischer
added a commit
that referenced
this issue
Nov 12, 2023
No change to logic. This updates nyc (code coverage tool) to version 15, which works around a breaking change that snuck into the latest Node LTS versions. Unfortunately, this version of nyc appears to break Node 8 and 9. We need to work around this problem by skipping test coverage on those versions. Fixes #1130
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Node version (or tell us if you're using electron or some other framework):
v16, v18, or v20
ShellJS version (the most recent version/Github branch you see the bug on):
main
git branchOperating system:
All
Description of the bug:
It looks like CI is broken right now. It appears that
nyc
is running into a bug on node v16, v18, and v20. See this CI run for an example: https://github.com/shelljs/shelljs/actions/runs/5956710281/job/16287478757?pr=1129. Here's the main stack that I see:This appears to have regressed recently, so maybe this is a change in the latest node LTS versions.
Example ShellJS command to reproduce the error:
N/A. This reproduces with
npm run test-with-coverage
.The text was updated successfully, but these errors were encountered: