diff --git a/test/.eslintrc.yaml b/test/.eslintrc.yaml index 3c5ecdb3e44..ebea1fa515e 100644 --- a/test/.eslintrc.yaml +++ b/test/.eslintrc.yaml @@ -83,7 +83,6 @@ overrides: - node-api/*/*.js - parallel/*.js - parallel/*.mjs - - pseudo-tty/*.js - pummel/*.js - sequential/*.js - sequential/*.mjs diff --git a/test/pseudo-tty/console_colors.js b/test/pseudo-tty/console_colors.js index e525bed59c9..d819e06c4f1 100644 --- a/test/pseudo-tty/console_colors.js +++ b/test/pseudo-tty/console_colors.js @@ -10,7 +10,7 @@ console.log('%s q', 'string'); console.log('%o with object format param', { foo: 'bar' }); console.log( - new Error('test\n at abc (../fixtures/node_modules/bar.js:4:4)\nfoobar') + new Error('test\n at abc (../fixtures/node_modules/bar.js:4:4)\nfoobar'), ); try { diff --git a/test/pseudo-tty/readline-dumb-tty.js b/test/pseudo-tty/readline-dumb-tty.js index 6b9a3b59ad9..b3215415ea3 100644 --- a/test/pseudo-tty/readline-dumb-tty.js +++ b/test/pseudo-tty/readline-dumb-tty.js @@ -7,7 +7,7 @@ const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, - output: process.stdout + output: process.stdout, }); rl.write('text'); diff --git a/test/pseudo-tty/repl-dumb-tty.js b/test/pseudo-tty/repl-dumb-tty.js index 7fb96457151..7563ea43402 100644 --- a/test/pseudo-tty/repl-dumb-tty.js +++ b/test/pseudo-tty/repl-dumb-tty.js @@ -17,7 +17,7 @@ repl.start('> '); terminal: true, input: stream, output: process.stdout, - useColors: false + useColors: false, }); replServer.on('close', common.mustCall()); diff --git a/test/pseudo-tty/test-assert-no-color.js b/test/pseudo-tty/test-assert-no-color.js index c4e782b560f..698d29ab8db 100644 --- a/test/pseudo-tty/test-assert-no-color.js +++ b/test/pseudo-tty/test-assert-no-color.js @@ -15,5 +15,5 @@ assert.throws( '+ {}\n' + '- {\n' + '- foo: \'bar\'\n' + - '- }' + '- }', }); diff --git a/test/pseudo-tty/test-assert-position-indicator.js b/test/pseudo-tty/test-assert-position-indicator.js index 68baecbd7b4..9909fee2b4a 100644 --- a/test/pseudo-tty/test-assert-position-indicator.js +++ b/test/pseudo-tty/test-assert-position-indicator.js @@ -8,11 +8,11 @@ process.stderr.columns = 20; // Confirm that there is no position indicator. assert.throws( () => { assert.strictEqual('a'.repeat(30), 'a'.repeat(31)); }, - (err) => !err.message.includes('^') + (err) => !err.message.includes('^'), ); // Confirm that there is a position indicator. assert.throws( () => { assert.strictEqual('aaaa', 'aaaaa'); }, - (err) => err.message.includes('^') + (err) => err.message.includes('^'), ); diff --git a/test/pseudo-tty/test-set-raw-mode-reset-process-exit.js b/test/pseudo-tty/test-set-raw-mode-reset-process-exit.js index 1f80ab304d5..32a56bf2d56 100644 --- a/test/pseudo-tty/test-set-raw-mode-reset-process-exit.js +++ b/test/pseudo-tty/test-set-raw-mode-reset-process-exit.js @@ -10,7 +10,7 @@ child_process.spawnSync(process.execPath, [ const { stdout } = child_process.spawnSync('stty', { stdio: ['inherit', 'pipe', 'inherit'], - encoding: 'utf8' + encoding: 'utf8', }); if (stdout.match(/-echo\b/)) { diff --git a/test/pseudo-tty/test-set-raw-mode-reset-signal.js b/test/pseudo-tty/test-set-raw-mode-reset-signal.js index 8b666f3ee0a..7c4a315c545 100644 --- a/test/pseudo-tty/test-set-raw-mode-reset-signal.js +++ b/test/pseudo-tty/test-set-raw-mode-reset-signal.js @@ -15,7 +15,7 @@ proc.stdout.on('data', common.mustCall(() => { proc.on('exit', common.mustCall(() => { const { stdout } = child_process.spawnSync('stty', { stdio: ['inherit', 'pipe', 'inherit'], - encoding: 'utf8' + encoding: 'utf8', }); if (stdout.match(/-echo\b/)) { diff --git a/test/pseudo-tty/test-set-raw-mode-reset.js b/test/pseudo-tty/test-set-raw-mode-reset.js index 7cd9bba8067..28055ab52bb 100644 --- a/test/pseudo-tty/test-set-raw-mode-reset.js +++ b/test/pseudo-tty/test-set-raw-mode-reset.js @@ -11,7 +11,7 @@ child_process.spawnSync(process.execPath, [ const { stdout } = child_process.spawnSync('stty', { stdio: ['inherit', 'pipe', 'inherit'], - encoding: 'utf8' + encoding: 'utf8', }); if (stdout.match(/-echo\b/)) { diff --git a/test/pseudo-tty/test-trace-sigint-disabled.js b/test/pseudo-tty/test-trace-sigint-disabled.js index 5dc4dfa9b36..fdc7480d83b 100644 --- a/test/pseudo-tty/test-trace-sigint-disabled.js +++ b/test/pseudo-tty/test-trace-sigint-disabled.js @@ -14,7 +14,7 @@ if (process.env.CHILD === 'true') { ['--trace-sigint', __filename], { env: { ...process.env, CHILD: 'true' }, - stdio: 'inherit' + stdio: 'inherit', }); cp.on('exit', mustCall((code, signal) => { assert.strictEqual(signal, null); diff --git a/test/pseudo-tty/test-trace-sigint-on-idle.js b/test/pseudo-tty/test-trace-sigint-on-idle.js index 5f79cb82fe9..8d9bbb3a5d2 100644 --- a/test/pseudo-tty/test-trace-sigint-on-idle.js +++ b/test/pseudo-tty/test-trace-sigint-on-idle.js @@ -13,7 +13,7 @@ if (process.env.CHILD === 'true') { ['--trace-sigint', __filename], { env: { ...process.env, CHILD: 'true' }, - stdio: ['inherit', 'inherit', 'inherit', 'ipc'] + stdio: ['inherit', 'inherit', 'inherit', 'ipc'], }); cp.on('message', mustCall(() => { setTimeout(() => cp.kill('SIGINT'), platformTimeout(100)); diff --git a/test/pseudo-tty/test-trace-sigint.js b/test/pseudo-tty/test-trace-sigint.js index 4c715973e8b..7429378233f 100644 --- a/test/pseudo-tty/test-trace-sigint.js +++ b/test/pseudo-tty/test-trace-sigint.js @@ -14,7 +14,7 @@ if (process.env.CHILD === 'true') { ['--trace-sigint', __filename], { env: { ...process.env, CHILD: 'true' }, - stdio: 'inherit' + stdio: 'inherit', }); cp.on('exit', mustCall((code, signal) => { assert.strictEqual(signal, 'SIGINT'); diff --git a/test/pseudo-tty/test-tty-color-support.js b/test/pseudo-tty/test-tty-color-support.js index 57ed640d4d8..f846842ee01 100644 --- a/test/pseudo-tty/test-tty-color-support.js +++ b/test/pseudo-tty/test-tty-color-support.js @@ -21,14 +21,14 @@ const writeStream = new WriteStream(fd); [true, null, () => {}, Symbol(), 5n].forEach((input) => { assert.throws( () => writeStream.hasColors(input), - { code: 'ERR_INVALID_ARG_TYPE' } + { code: 'ERR_INVALID_ARG_TYPE' }, ); }); [-1, 1].forEach((input) => { assert.throws( () => writeStream.hasColors(input), - { code: 'ERR_OUT_OF_RANGE' } + { code: 'ERR_OUT_OF_RANGE' }, ); }); @@ -78,7 +78,7 @@ const writeStream = new WriteStream(fd); actual, depth, `i: ${i}, expected: ${depth}, ` + - `actual: ${actual}, env: ${inspect(env)}` + `actual: ${actual}, env: ${inspect(env)}`, ); const colors = 2 ** actual; assert(writeStream.hasColors(colors, env));