We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b8e1c commit 44ddfd1Copy full SHA for 44ddfd1
src/test/index.spec.js
@@ -4,7 +4,7 @@ import { computeTooltipPosition } from 'utils/compute-positions'
4
import { TooltipController as Tooltip } from '../components/TooltipController'
5
6
// Tell Jest to mock all timeout functions
7
-jest.useFakeTimers()
+jest.useRealTimers()
8
9
// eslint-disable-next-line react/prop-types
10
const TooltipProps = ({ id, ...tooltipParams }) => (
@@ -208,6 +208,8 @@ describe('compute positions', () => {
208
})
209
210
describe('debounce', () => {
211
+ jest.useFakeTimers()
212
+
213
let func
214
let debouncedFunc
215
0 commit comments