You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-runes/samples/deferred-events-consistency/_config.js

15 lines
344 B

import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
async test({ assert, target, logs }) {
const [b1] = target.querySelectorAll('button');
b1.dispatchEvent(new MouseEvent('mouseup', { bubbles: true }));
await Promise.resolve();
b1.click();
flushSync();
assert.deepEqual(logs, []);
}
});