|
@@ -57,8 +57,9 @@ async function main () {
|
|
|
if (args.validateDisabled) {
|
|
|
const missing = [];
|
|
|
for (const test of DISABLED_TESTS) {
|
|
|
- const testName = test.endsWith('.js') ? test : `${test}.js`;
|
|
|
- if (!fs.existsSync(path.join(NODE_DIR, 'test', testName))) {
|
|
|
+ const js = path.join(NODE_DIR, 'test', `${test}.js`);
|
|
|
+ const mjs = path.join(NODE_DIR, 'test', `${test}.mjs`);
|
|
|
+ if (!fs.existsSync(js) && !fs.existsSync(mjs)) {
|
|
|
missing.push(test);
|
|
|
}
|
|
|
}
|