Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
afterEach(() => {
if (cachedWrappers) {
cachedWrappers.forEach(wrapper => {
document.body.removeChild(wrapper);
});
}
cachedWrappers.length = 0; // reset it like this as we can't reassign it
});
}