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 <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>
  • Loading branch information
cola119 authored and targos committed Jul 20, 2022
1 parent 6b29947 commit ea02c4d
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 ea02c4d

Please sign in to comment.