mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: validate .mjs spec files in Node.js smoke tests (#37073)
chore: take mjs spec files in Node.js smoke tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user