1'use strict'; 2const common = require('../../../common'); 3const { once } = require('node:events'); 4const { spawn } = require('node:child_process'); 5const fixtures = require('../../../common/fixtures'); 6 7(async function run() { 8 const test = fixtures.path('test-runner/output/arbitrary-output-colored-1.js'); 9 await once(spawn(process.execPath, ['--test', test], { stdio: 'inherit', env: { FORCE_COLOR: 1 } }), 'exit'); 10 await once(spawn(process.execPath, ['--test', '--test-reporter', 'tap', test], { stdio: 'inherit', env: { FORCE_COLOR: 1 } }), 'exit'); 11})().then(common.mustCall()); 12