Skip to content

Commit 3b44fe6

Browse files
committed
test
1 parent dfa4350 commit 3b44fe6

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script>
2+
import { onMount } from 'svelte'
3+
4+
let thing = $state(0)
5+
6+
onMount(() => {
7+
thing = 1;
8+
return () => {
9+
console.log(thing);
10+
}
11+
})
12+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { test } from '../../test';
2+
3+
export default test({
4+
async test({ assert, logs }) {
5+
assert.deepEqual(logs, [1]);
6+
}
7+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script>
2+
import { onMount } from "svelte"
3+
import Component from './Component.svelte';
4+
5+
let key = $state(0);
6+
7+
onMount(() => {
8+
key = 1;
9+
})
10+
</script>
11+
12+
{#key key}
13+
<Component />
14+
{/key}

0 commit comments

Comments
 (0)