chore: beef up memory leak test for unowned deriveds

pull/12265/head
Rich Harris 3 months ago
parent dcc7ed4cc7
commit f5a99ec7f3

@ -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