Skip to content

Commit 281f939

Browse files
committed
test(linter/expect-expect): add test case for expect call in for loop (#12907)
fixes #12905
1 parent 106e7a7 commit 281f939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/oxc_linter/src/rules/jest/expect_expect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ fn test() {
494494
"#,
495495
None,
496496
),
497+
("it('test', async () => { const array = [1]; for (const element of array) { expect(element).toBe(1); } });", None)
497498
];
498499

499500
let mut fail = vec![

0 commit comments

Comments
 (0)