pull/15844/head
Rich Harris 3 months ago
parent 8ba64c08db
commit 9bedb7f729

@ -1,6 +1,6 @@
/** @import { Effect, TemplateNode, } from '#client' */
import { BOUNDARY_EFFECT, EFFECT_PRESERVED, EFFECT_TRANSPARENT, INERT } from '#client/constants';
import { BOUNDARY_EFFECT, EFFECT_PRESERVED, EFFECT_TRANSPARENT } from '#client/constants';
import { component_context, set_component_context } from '../../context.js';
import { invoke_error_boundary } from '../../error-handling.js';
import { block, branch, destroy_effect, pause_effect } from '../../reactivity/effects.js';

@ -306,11 +306,8 @@ export class Batch {
}
/**
* Forcibly remove all current batches
* TODO investigate why we need this in tests
* Forcibly remove all current batches, to prevent cross-talk between tests
*/
export function clear() {
for (const batch of batches) {
batch.remove();
}
batches.clear();
}

Loading…
Cancel
Save