diff --git a/test/parallel/test-runner-run.mjs b/test/parallel/test-runner-run.mjs index 7a575da9c95275..a19bdb74a5ab27 100644 --- a/test/parallel/test-runner-run.mjs +++ b/test/parallel/test-runner-run.mjs @@ -4,6 +4,7 @@ import { join } from 'node:path'; import { describe, it, run } from 'node:test'; import { dot, spec, tap } from 'node:test/reporters'; import assert from 'node:assert'; +import util from 'node:util'; const testFixtures = fixtures.path('test-runner'); @@ -68,10 +69,9 @@ describe('require(\'node:test\').run', { concurrency: true }, () => { const result = await run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')] }).compose(dot).toArray(); - assert.deepStrictEqual(result, [ - '.', - '\n', - ]); + + assert.strictEqual(util.stripVTControlCharacters(result[0]), '.'); + assert.strictEqual(util.stripVTControlCharacters(result[1]), '\n'); }); describe('should be piped with spec reporter', () => {