mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
781e41df61
PR-URL: https://github.com/nodejs/node/pull/30802 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
15 lines
481 B
JavaScript
15 lines
481 B
JavaScript
import { mustCall } from '../common/index.mjs';
|
|
import { exec } from 'child_process';
|
|
import assert from 'assert';
|
|
|
|
const expectedError =
|
|
'cannot use --es-module-specifier-resolution ' +
|
|
'and --experimental-specifier-resolution at the same time';
|
|
|
|
const flags = '--es-module-specifier-resolution=node ' +
|
|
'--experimental-specifier-resolution=node';
|
|
|
|
exec(`${process.execPath} ${flags}`, mustCall((error) => {
|
|
assert(error.message.includes(expectedError));
|
|
}));
|