From 68ee33289bbf582c28d7d49764556753b0fe3b8a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 23 Feb 2024 13:47:10 -0500 Subject: [PATCH] clear raf tasks after test --- packages/svelte/tests/runtime-legacy/shared.ts | 2 ++ 1 file changed, 2 insertions(+) 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,