blob: fc5c7fcd0e98a9a72daa9ecf6e71491118e568b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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}`, {
timeout: 300
}, mustCall((error) => {
assert(error.message.includes(expectedError));
}));
|