node/test/parallel/test-repl-unsupported-option.js
cola119 743d0acd4b test: add test to ensure repl doesn't support --input-type
PR-URL: https://github.com/nodejs/node/pull/43507
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
2022-07-04 11:48:24 +00:00

11 lines
277 B
JavaScript

'use strict';
require('../common');
const assert = require('assert');
const { spawnSync } = require('child_process');
const result = spawnSync(process.execPath, ['-i', '--input-type=module']);
assert.match(result.stderr.toString(), /Cannot specify --input-type for REPL/);