@types/jest v29 declares the jest namespace without a global value; reference it explicitly and re-add the global used by setup/test files.
13 lines
412 B
TypeScript
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;
|