-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Replaced common.fixturesDir with common/fixtures module in test/es-module/test-esm-encoded-path-native.js #15989
Conversation
@@ -1,5 +1,5 @@ | |||
'use strict'; | |||
const common = require('../common'); | |||
const common = require('../common/fixtures'); |
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.
Did this test ever work? It seems like it did not? common
itself should still be required as it is going to load a couple of other things as well. The return value here should also be renamed to fixtures, since it is not common
that is returned here anymore.
@hschwalm do you still want to pursue this? |
…dule/test-esm-encoded-path-native.js
const assert = require('assert'); | ||
const { spawn } = require('child_process'); | ||
|
||
const native = `${common.fixturesDir}/es-module-url/native.mjs`; | ||
const native = `${fixtures.fixturesDir}/es-module-url/native.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.
This can be simply:
const native = fixtures.path('es-module-url', 'native.mjs');
Landed in b932854 with #15989 (review) fixed. Thanks for the contribution! |
PR-URL: #15989 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #15989 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: nodejs/node#15989 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Replaced the common.fixturesDir with the usage of common/fixtures module
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)