Skip to content

Commit c89385d

Browse files
feat: use beforeEach instead of beforeAll (#407)
1 parent 7ab745d commit c89385d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Item = {
88

99
const observers = new Map<IntersectionObserver, Item>();
1010

11-
beforeAll(() => {
11+
beforeEach(() => {
1212
/**
1313
* Create a custom IntersectionObserver mock, allowing us to intercept the observe and unobserve calls.
1414
* We keep track of the elements being observed, so when `mockAllIsIntersecting` is triggered it will

0 commit comments

Comments
 (0)