diff --git a/packages/svelte/tests/runtime-legacy/shared.ts b/packages/svelte/tests/runtime-legacy/shared.ts index 062168de5e..6f2e2cd11d 100644 --- a/packages/svelte/tests/runtime-legacy/shared.ts +++ b/packages/svelte/tests/runtime-legacy/shared.ts @@ -312,6 +312,8 @@ async function run_test_variant( assert.fail('Expected a runtime error'); } } finally { + raf.tick(Infinity); + instance.$destroy(); assert_html_equal( target.innerHTML,