UNPKG

@ehsaneha/react-debounce

Version:

useDebounce is a custom React hook that delays invoking a function until a specified time has passed since the last call, ideal for handling user input like search fields.

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, }, };