Skip to content

Commit

Permalink
chore: inline variable statement in for loop (jestjs#12423)
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck authored Feb 18, 2022
1 parent f3c48b5 commit 7d4595e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/jest-circus/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ export const getEachHooksForTest = (test: Circus.TestEntry): TestHooks => {

do {
const beforeEachForCurrentBlock = [];
// TODO: inline after https://github.com/microsoft/TypeScript/pull/34840 is released
let hook: Circus.Hook;
for (hook of block.hooks) {
for (const hook of block.hooks) {
switch (hook.type) {
case 'beforeEach':
beforeEachForCurrentBlock.push(hook);
Expand Down

0 comments on commit 7d4595e

Please sign in to comment.