We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cae69b commit 6ef52d1Copy full SHA for 6ef52d1
packages/svelte/tests/runtime-runes/samples/flush-sync-inside-attachment/_config.js
@@ -1,8 +1,12 @@
1
+import { async_mode } from '../../../helpers';
2
import { test } from '../../test';
3
4
export default test({
5
+ // In legacy mode this succeeds and logs 'hello'
6
+ // In async mode this throws an error because flushSync is called inside an effect
7
async test({ assert, target, logs }) {
8
assert.htmlEqual(target.innerHTML, `<button>show</button> <div>hello</div>`);
9
assert.deepEqual(logs, ['hello']);
- }
10
+ },
11
+ runtime_error: async_mode ? 'flush_sync_in_effect' : undefined
12
});
0 commit comments