Files
JustZoe101 df0ac71bc3 test(types): bridge the Jest global value for typechecking
@types/jest v29 declares the jest namespace without a global value; reference
it explicitly and re-add the global used by setup/test files.
2026-10-09 16:41:21 +02:00

13 lines
412 B
TypeScript

/// <reference types="jest" />
/**
* Bridge the Jest global value.
*
* `@types/jest` declares the `jest` namespace but (since v29) no global value,
* while the runtime provides one and `@jest/globals` types it. This ambient
* declaration re-adds the global so setup and test files can keep calling
* `jest.mock` / `jest.fn` without importing.
*/
declare const jest: typeof import('@jest/globals').jest;