import { writable } from 'svelte/store'; export default { get props() { return { count: writable(0) }; }, html: ` `, async test({ assert, component, target, window }) { const button = target.querySelector('button'); const click = new window.MouseEvent('click'); await button.dispatchEvent(click); assert.htmlEqual( target.innerHTML, ` ` ); await component.count.set(42); assert.htmlEqual( target.innerHTML, ` ` ); } };