failing test

defer-effects-in-pending-boundary
Rich Harris 2 weeks ago
parent e36137d161
commit f41dad7222

@ -1,7 +1,11 @@
<script> <script>
$effect(() => {
console.log('before');
});
await 1; await 1;
$effect(() => { $effect(() => {
console.log('hello'); console.log('after');
}); });
</script> </script>

@ -3,7 +3,8 @@ import { test } from '../../test';
export default test({ export default test({
async test({ assert, logs }) { async test({ assert, logs }) {
assert.deepEqual(logs, []);
await tick(); await tick();
assert.deepEqual(logs, ['hello']); assert.deepEqual(logs, ['before', 'after']);
} }
}); });

Loading…
Cancel
Save