We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa85e1 commit c07ca7dCopy full SHA for c07ca7d
packages/svelte/tests/signals/test.ts
@@ -1,7 +1,6 @@
1
import { describe, assert, it } from 'vitest';
2
import * as $ from '../../src/internal/client/runtime';
3
import {
4
- destroy_effect,
5
effect,
6
effect_root,
7
render_effect,
@@ -23,12 +22,12 @@ function run_test(runes: boolean, fn: (runes: boolean) => () => void) {
23
22
$.push({}, runes);
24
// Create a render context so that effect validations etc don't fail
25
let execute: any;
26
- const signal = render_effect(() => {
+ const destroy = effect_root(() => {
27
execute = fn(runes);
28
});
29
$.pop();
30
execute();
31
- destroy_effect(signal);
+ destroy();
32
};
33
}
34
0 commit comments