Skip to content

Commit 5c4203b

Browse files
committed
fixup! test: unify assertSnapshot stacktrace transform
1 parent 9f7ada0 commit 5c4203b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

test/fixtures/test-runner/output/hooks_spec_reporter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const spawn = require('node:child_process').spawn;
66
const child = spawn(process.execPath,
77
['--no-warnings', '--test-reporter', 'spec', fixtures.path('test-runner/output/hooks.js')],
88
{ stdio: 'pipe' });
9-
// eslint-disable-next-line no-control-regex
10-
child.stdout.on('data', (d) => process.stdout.write(d.toString().replace(/[^\x00-\x7F]/g, '').replace(/\u001b\[\d+m/g, '')));
9+
10+
child.stdout.pipe(process.stdout);
1111
child.stderr.pipe(process.stderr);

test/fixtures/test-runner/output/spec_reporter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ const child = spawn(
1313
{ stdio: 'pipe' },
1414
);
1515

16-
// eslint-disable-next-line no-control-regex
17-
child.stdout.on('data', (d) => process.stdout.write(d.toString().replace(/[^\x00-\x7F]/g, '').replace(/\u001b\[\d+m/g, '')));
16+
child.stdout.pipe(process.stdout);
1817
child.stderr.pipe(process.stderr);

test/fixtures/test-runner/output/spec_reporter_cli.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ const child = spawn(
1414
{ stdio: 'pipe' },
1515
);
1616

17-
// eslint-disable-next-line no-control-regex
18-
child.stdout.on('data', (d) => process.stdout.write(d.toString().replace(/[^\x00-\x7F]/g, '').replace(/\u001b\[\d+m/g, '')));
17+
child.stdout.pipe(process.stdout);
1918
child.stderr.pipe(process.stderr);

0 commit comments

Comments
 (0)