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>
This commit is contained in:
cola119 authored and Michaël Zasso committed 2022-07-12 07:41:49 +02:00
1 parent b4b15b71d7
commit 0b4956079a
1 file changed
+10
@@ -0,0 +1,10 @@
'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/);