Skip to content

Commit 5ad2c60

Browse files
committed
Log even ignored output during tests (for debugging)
1 parent 754e65d commit 5ad2c60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration-test.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ describe('Integration test', function () {
7474
});
7575

7676
serverProcess.stderr!.on('data', (d) => {
77+
console.warn(d.toString());
78+
7779
// Some nodes warn about fs.promises - ignore it.
7880
if (d.toString().includes('ExperimentalWarning: The fs.promises API')) return;
7981
// We use _stream_wrap, in some node versions this is deprecated, for now ignore it
@@ -85,7 +87,6 @@ describe('Integration test', function () {
8587
if (d.toString().includes('[ENOENT]')) return;
8688

8789
stderr = stderr + d.toString();
88-
console.warn(d.toString());
8990
});
9091

9192
// Exit or error before our expected output means startup failed.

0 commit comments

Comments
 (0)