Skip to content

Commit

Permalink
feat: use beforeEach instead of beforeAll (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 authored Nov 1, 2020
1 parent 7ab745d commit c89385d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Item = {

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

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

1 comment on commit c89385d

@vercel
Copy link

@vercel vercel bot commented on c89385d Nov 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.