-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
replace mocha
and nyc
with native node test runner and c8
#54
base: master
Are you sure you want to change the base?
Conversation
5aaf5ef
to
20df3ec
Compare
Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected], npm/[email protected], npm/[email protected] |
20df3ec
to
e0c2936
Compare
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.
I am on the fence on adopting the node test runner yet, but I am a fan of trying in one package, so I am approving this. But I will tag in the @jshttp/express-tc in case anyone has strong opinions.
relevant express team discussion on the topic of the node test runner, and test runners in general: https://openjs-foundation.slack.com/archives/C02QB1731FH/p1729689394701019 |
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.
+1 on trying it in a single package for now, probably before releasing, the captain should agree, which in this case is @blakeembrey
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.
LGTM! @Phillip9587 can you work on the conflct? 🙏
e0c2936
to
ad7b5ad
Compare
@UlisesGascon Done! |
This PR refactors the test setup by replacing Mocha and NYC with Node.js's native test runner (
node:test
) andc8
for coverage reporting.Key Changes:
c8
for code coverage.deep-equal
with nativeassert.deepEqual
.Benefits:
These changes modernize the testing framework, reduce external dependencies, and uphold code coverage standards using built-in Node.js capabilities.