-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: refactor some esm tests #55472
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55472 +/- ##
==========================================
- Coverage 88.42% 88.41% -0.02%
==========================================
Files 653 653
Lines 187498 187498
Branches 36100 36098 -2
==========================================
- Hits 165791 165772 -19
- Misses 14957 14966 +9
- Partials 6750 6760 +10 |
import { mustCall } from '../common/index.mjs'; | ||
import { strictEqual } from 'assert'; | ||
import '../common/index.mjs'; | ||
import assert from 'node:assert'; | ||
|
||
import { importFixture } from '../fixtures/pkgexports.mjs'; |
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.
While we're making changes in tests, it would be nice if we could start adding comments that describe the expected tested behavior or make use of the node:test
API and provide descriptive names for the tests.
Landed in ecc6238 |
PR-URL: #55472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: #55472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: nodejs#55472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: #55472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: #55472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: #55472 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Those tests were using unusual patterns, making them a bit hard to read.