add comment

pull/16335/head
Rich Harris 1 month ago
parent 02876d3e33
commit b4c6a9e8e5

@ -12,6 +12,8 @@ export default test({
const [open, close] = target.querySelectorAll('button'); const [open, close] = target.querySelectorAll('button');
flushSync(() => open.click()); flushSync(() => open.click());
// if the effect queue isn't aborted after the state change, this will throw
flushSync(() => close.click()); flushSync(() => close.click());
} }
}); });

Loading…
Cancel
Save