Skip to content

Commit

Permalink
fix: update automatic.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
navateja-alagam authored Jul 15, 2024
1 parent 63a1226 commit e78aee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest/src/automatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function automaticCheck(opts: AutoCheckOpts = defaultAutoCheckOpts)
// Create a DOM walker filtering only elements (skipping text, comment nodes etc)
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);
let currNode = walker.firstChild();
const customRules = useCustomRules();
const customRules = []; // useCustomRules();

Check failure on line 89 in packages/jest/src/automatic.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 16.x on ubuntu-latest

Variable 'customRules' implicitly has type 'any[]' in some locations where its type cannot be determined.

Check failure on line 89 in packages/jest/src/automatic.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 18.x on ubuntu-latest

Variable 'customRules' implicitly has type 'any[]' in some locations where its type cannot be determined.

Check failure on line 89 in packages/jest/src/automatic.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 20.x on ubuntu-latest

Variable 'customRules' implicitly has type 'any[]' in some locations where its type cannot be determined.
try {
if (!opts.runDOMMutationObserver) {
while (currNode !== null) {
Expand Down

0 comments on commit e78aee8

Please sign in to comment.