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/error-boundary-12/_config.js

13 lines
250 B

import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
test({ assert, target }) {
const btn = target.querySelector('button');
assert.throws(() => {
flushSync(() => btn?.click());
}, /kaboom/);
}
});