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-18/_config.js

18 lines
383 B

import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
skip: true, // TODO unskip once tagged values are in and we can fix this properly
test({ assert, target }) {
let btn = target.querySelector('button');
assert.throws(() => {
flushSync(() => {
btn?.click();
btn?.click();
});
}, /test\n\n\tin {expression}\n/);
}
});