use error boundary for test - vitest does some weird error swallowing afaict

pull/15844/head
Rich Harris 3 months ago
parent f991d9d437
commit f0bb8ddd58

@ -35,8 +35,7 @@ export default test({
await tick(); await tick();
three.click(); three.click();
await tick(); await tick();
assert.fail('should not allow duplicate keys');
},
runtime_error: 'each_key_duplicate' assert.include(target.innerHTML, '<p>each_key_duplicate');
}
}); });

@ -14,6 +14,10 @@
{/each} {/each}
</div> </div>
{#snippet failed(e)}
<p>{e.message}</p>
{/snippet}
{#snippet pending()} {#snippet pending()}
<p>pending</p> <p>pending</p>
{/snippet} {/snippet}

Loading…
Cancel
Save