Skip to content

Commit

Permalink
feat(dh): Add resize observer to test-setup for datahub
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Dec 20, 2023
1 parent 5ce1402 commit 2c3436c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/datahub/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
import 'jest-preset-angular/setup-jest'
import '../../../jest.setup'

class ResizeObserverMock {
observe = jest.fn()
unobserve = jest.fn()
}

;(window as any).ResizeObserver = ResizeObserverMock

0 comments on commit 2c3436c

Please sign in to comment.