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 <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>
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)