Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 82c8892

Browse files
committed
Check integration test exit code before output
Certain Windows test runs appear to end abruptly with truncated output. Hopefully this will help identify the underlying cause.
1 parent de10512 commit 82c8892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/test-common/src/spawn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ export const spawnTestWithTimeout = async (
138138
throw asyncTestError.error;
139139
}
140140

141-
await verifyOutput(stdoutLines, stderrLines);
142-
143141
expect(signal).toBe(null);
144142
expect(code).toBe(expectedExitCode);
143+
144+
await verifyOutput(stdoutLines, stderrLines);
145145
} catch (e: unknown) {
146146
// Jest doesn't have a built-in setting for printing console logs only for failed tests, so we
147147
// just defer the output until this catch block and attach it to the error. See

0 commit comments

Comments
 (0)