-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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: migrate fs read promises to test runner #55749
base: main
Are you sure you want to change the base?
Conversation
const fsPromises = require('node:fs/promises'); | ||
const read = require('node:util').promisify(fs.read); | ||
const assert = require('node:assert'); | ||
const { describe, test } = require('node:test'); |
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.
const { describe, test } = require('node:test'); | |
const { describe, it } = require('node:test'); |
"it" is the correct function for "describe", but I don't remember if it really matters under the hood
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 think one is an alias of the other, but changed it anyway
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55749 +/- ##
==========================================
- Coverage 88.43% 88.40% -0.04%
==========================================
Files 654 654
Lines 187698 187747 +49
Branches 36123 36130 +7
==========================================
- Hits 165998 165973 -25
- Misses 14945 15012 +67
- Partials 6755 6762 +7
|
Migrate
test/parallel/test-fs-read-promises-optional-params
to use node test runner