We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12f5de commit 2ecc6d6Copy full SHA for 2ecc6d6
1 file changed
tests/setupAfterEnv.ts
@@ -7,9 +7,9 @@ class TestMessageChannel {
7
8
port2 = {
9
postMessage: (data: unknown) => {
10
- setTimeout(() => {
+ queueMicrotask(() => {
11
this.port1.onmessage?.({ data } as MessageEvent);
12
- }, 0);
+ });
13
},
14
};
15
}
0 commit comments