Skip to content

Commit 7d9ab97

Browse files
committed
test: strip color chars in test-runner-run
Fixes: #54551
1 parent 1399d4e commit 7d9ab97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-runner-run.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { join } from 'node:path';
44
import { describe, it, run } from 'node:test';
55
import { dot, spec, tap } from 'node:test/reporters';
66
import assert from 'node:assert';
7+
import utils from 'internal/util/inspect';
78

89
const testFixtures = fixtures.path('test-runner');
910

@@ -68,10 +69,9 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
6869
const result = await run({
6970
files: [join(testFixtures, 'default-behavior/test/random.cjs')]
7071
}).compose(dot).toArray();
71-
assert.deepStrictEqual(result, [
72-
'.',
73-
'\n',
74-
]);
72+
73+
assert.strictEqual(utils.stripVTControlCharacters(result[0]), '.');
74+
assert.strictEqual(utils.stripVTControlCharacters(result[1]), '\n');
7575
});
7676

7777
describe('should be piped with spec reporter', () => {

0 commit comments

Comments
 (0)