Skip to content

Commit

Permalink
Fixing jest setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Dec 2, 2021
1 parent 586adab commit 7b2d18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jest.setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { render as testRender, act } from "@testing-library/react"
import * as React from "react"

// Stub ResizeObserver
if (!window.ResizeObserver) {
window.ResizeObserver = class ResizeObserver {
if (!(global as any).ResizeObserver) {
;(global as any).ResizeObserver = class ResizeObserver {
observe() {}
unobserve() {}
disconnect() {}
Expand Down

0 comments on commit 7b2d18b

Please sign in to comment.