mirror of https://github.com/sveltejs/svelte
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…
Reference in new issue