Skip to content

Commit d259645

Browse files
committed
Add comment
1 parent a6df646 commit d259645

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/node/__test__/js_value_conversion.spec.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,9 @@ test("throw exception in callback", async () => {
10711071
const logs = captureLogs();
10721072
try {
10731073
instance!.invoke("throw-something", []);
1074+
// Vitest runs these tests in workers and the native binding writes to
1075+
// stderr on the next macrotask, so yield once before restoring writers.
1076+
// https://github.com/vitest-dev/vitest/discussions/5366
10741077
await new Promise((resolve) => setTimeout(resolve, 0));
10751078
} finally {
10761079
logs.restore();

0 commit comments

Comments
 (0)