From f76314d90c55041be24e945d6cd424f59a38c368 Mon Sep 17 00:00:00 2001 From: Navateja Alagam Date: Wed, 12 Jun 2024 19:44:30 +0530 Subject: [PATCH] fix: Update automatic.ts --- packages/jest/src/automatic.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/jest/src/automatic.ts b/packages/jest/src/automatic.ts index e61dfa06..036deaf5 100644 --- a/packages/jest/src/automatic.ts +++ b/packages/jest/src/automatic.ts @@ -120,6 +120,7 @@ export async function automaticCheck(opts: AutoCheckOpts = defaultAutoCheckOpts) for await (const mutatedNode of mutatedNodes) { if (mutatedNode) { document.body.innerHTML = mutatedNode; + // remove walker // const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT); // let currNode = walker.firstChild(); // while (currNode !== null) {