Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

ScrollLock: Locking fix + resolve console warning #587

Merged
merged 4 commits into from Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 2 additions & 7 deletions config/jest/setupTests.js
@@ -1,12 +1,7 @@
import Enzyme from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import { setupTests } from '@helpscout/cyan'

Enzyme.configure({ adapter: new Adapter() })

beforeEach(() => {
jest.spyOn(window, 'requestAnimationFrame').mockImplementation(cb => cb())
})

afterEach(() => {
window.requestAnimationFrame.mockRestore()
})
setupTests()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Integrating with @helpscout/cyan