Skip to content

Commit 0b49560

Browse files
cola119targos
authored andcommitted
test: add test to ensure repl doesn't support --input-type
PR-URL: #43507 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent b4b15b7 commit 0b49560

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
require('../common');
4+
5+
const assert = require('assert');
6+
const { spawnSync } = require('child_process');
7+
8+
const result = spawnSync(process.execPath, ['-i', '--input-type=module']);
9+
10+
assert.match(result.stderr.toString(), /Cannot specify --input-type for REPL/);

0 commit comments

Comments
 (0)