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: nodejs/node#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 guangwong committed Oct 10, 2022
1 parent 9912eb3 commit 26c31d2
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 26c31d2

Please sign in to comment.