Skip to content

Commit

Permalink
test: add test to ensure repl doesn't support --input-type
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cola119 authored and targos committed Jul 12, 2022
1 parent b4b15b7 commit 0b49560
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/parallel/test-repl-unsupported-option.js
Original file line number Diff line number Diff line change
@@ -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/);

0 comments on commit 0b49560

Please sign in to comment.