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/guard-if-nested/_config.js

14 lines
296 B

import { test } from '../../test';
import { flushSync } from 'svelte';
export default test({
mode: ['client'],
async test({ target, assert }) {
const button = target.querySelector('button');
flushSync(() => button?.click());
assert.equal(target.textContent?.trim(), 'Trigger');
}
});