Skip to content

Commit 90bc99d

Browse files
committed
pass instance to tests
1 parent 8cbe619 commit 90bc99d

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/tests/runtime-legacy

1 file changed

+2
-0
lines changed

packages/svelte/tests/runtime-legacy/shared.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export interface RuntimeTest<Props extends Record<string, any> = Record<string,
4444
component: Props & {
4545
[key: string]: any;
4646
};
47+
instance: Record<string, any>;
4748
mod: any;
4849
ok: typeof ok;
4950
raf: {
@@ -345,6 +346,7 @@ async function run_test_variant(
345346
},
346347
variant,
347348
component: runes ? props : instance,
349+
instance,
348350
mod,
349351
target,
350352
snapshot,

0 commit comments

Comments
 (0)