From ea02c4dca5cc881a81fbaf2158617b6fbb8314c5 Mon Sep 17 00:00:00 2001 From: cola119 Date: Tue, 21 Jun 2022 12:27:56 +0900 Subject: [PATCH] test: add test to ensure repl doesn't support --input-type PR-URL: https://github.com/nodejs/node/pull/43507 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- test/parallel/test-repl-unsupported-option.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/parallel/test-repl-unsupported-option.js diff --git a/test/parallel/test-repl-unsupported-option.js b/test/parallel/test-repl-unsupported-option.js new file mode 100644 index 00000000000000..c5b234614983f6 --- /dev/null +++ b/test/parallel/test-repl-unsupported-option.js @@ -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/);