chore: beef up memory leak test for unowned deriveds (#12265)

pull/12268/head
Rich Harris 6 months ago committed by GitHub
parent d2530ed4a1
commit 5ce7599f3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -273,10 +273,12 @@ describe('signals', () => {
flushSync(() => set(count, 0));
// Ensure we're not leaking consumers
assert.deepEqual(count.reactions?.length, 1);
assert.deepEqual(calc.reactions?.length, 1);
assert.deepEqual(log, [0, 2, 'limit', 0]);
destroy();
// Ensure we're not leaking consumers
assert.deepEqual(count.reactions, null);
assert.deepEqual(calc.reactions, null);
};
});

Loading…
Cancel
Save