Skip to content

Commit bd8f7db

Browse files
authored
check runtime errors (#9791)
Co-authored-by: Rich Harris <[email protected]>
1 parent 3b15e32 commit bd8f7db

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ async function run_test_variant(
305305
compileOptions
306306
});
307307
}
308+
309+
if (config.runtime_error && !unhandled_rejection) {
310+
unintended_error = true;
311+
assert.fail('Expected a runtime error');
312+
}
308313
} finally {
309314
instance.$destroy();
310315
assert_html_equal(

packages/svelte/tests/runtime-runes/samples/effect-infinite/_config.js

-7
This file was deleted.

packages/svelte/tests/runtime-runes/samples/effect-infinite/main.svelte

-11
This file was deleted.

0 commit comments

Comments
 (0)