File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/svelte/tests/runtime-runes/samples/effect-order-7 Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,18 @@ import { flushSync } from 'svelte';
2
2
import { test } from '../../test' ;
3
3
4
4
export default test ( {
5
- skip : true ,
5
+ // For this to work in non-async mode, we would need to abort
6
+ // inside `#traverse_effect_tree`, which would be very
7
+ // complicated and annoying. Since this hasn't been
8
+ // a real issue (AFAICT), we ignore it
9
+ skip_no_async : true ,
6
10
7
- async test ( { assert , target, logs } ) {
11
+ async test ( { target } ) {
8
12
const [ open , close ] = target . querySelectorAll ( 'button' ) ;
9
13
10
14
flushSync ( ( ) => open . click ( ) ) ;
11
- flushSync ( ( ) => close . click ( ) ) ;
12
15
13
- assert . deepEqual ( logs , [ true ] ) ;
16
+ // if the effect queue isn't aborted after the state change, this will throw
17
+ flushSync ( ( ) => close . click ( ) ) ;
14
18
}
15
19
} ) ;
You can’t perform that action at this time.
0 commit comments