diff --git a/test/parallel/test-runner-run.mjs b/test/parallel/test-runner-run.mjs index 7a575da9c95275..77bbb73fe0fe28 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 utils from 'internal/util/inspect'; 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(utils.stripVTControlCharacters(result[0]), '.'); + assert.strictEqual(utils.stripVTControlCharacters(result[1]), '\n'); }); describe('should be piped with spec reporter', () => {