add async-effect-after-await test

pull/16738/head
Rich Harris 2 weeks ago
parent bcd3acad21
commit e36137d161

@ -0,0 +1,7 @@
<script>
await 1;
$effect(() => {
console.log('hello');
});
</script>

@ -0,0 +1,9 @@
import { tick } from 'svelte';
import { test } from '../../test';
export default test({
async test({ assert, logs }) {
await tick();
assert.deepEqual(logs, ['hello']);
}
});

@ -0,0 +1,9 @@
<script>
import Child from './Child.svelte';
</script>
<svelte:boundary>
<Child />
{#snippet pending()}{/snippet}
</svelte:boundary>
Loading…
Cancel
Save