UNPKG

@ehsaneha/react-throttle

Version:

useThrottle is a custom React hook that limits how often a function can be called by ensuring it's invoked at most once within a specified delay period.

11 lines (9 loc) 243 B
import { createDefaultPreset } from "ts-jest"; const tsJestTransformCfg = createDefaultPreset().transform; /** @type {import("jest").Config} **/ module.exports = { testEnvironment: "jsdom", transform: { ...tsJestTransformCfg, }, };