From 177d8cb4ff5b2d3463279ce92c1ecc484942f036 Mon Sep 17 00:00:00 2001 From: Biki-das Date: Mon, 1 Nov 2021 22:32:13 +0530 Subject: [PATCH] Replaced module with namespace --- packages/jest-circus/src/types.ts | 2 +- packages/jest-jasmine2/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-circus/src/types.ts b/packages/jest-circus/src/types.ts index d381cfec56e1..98f36bf05af5 100644 --- a/packages/jest-circus/src/types.ts +++ b/packages/jest-circus/src/types.ts @@ -21,7 +21,7 @@ export const TEST_TIMEOUT_SYMBOL = Symbol.for( ) as unknown as 'TEST_TIMEOUT_SYMBOL'; declare global { - module NodeJS { + namespace NodeJS { interface Global { STATE_SYM_SYMBOL: Circus.State; RETRY_TIMES_SYMBOL: string; diff --git a/packages/jest-jasmine2/src/types.ts b/packages/jest-jasmine2/src/types.ts index bc131dedaf56..4d0ff244005e 100644 --- a/packages/jest-jasmine2/src/types.ts +++ b/packages/jest-jasmine2/src/types.ts @@ -93,7 +93,7 @@ export type Jasmine = { typeof globalThis; declare global { - module NodeJS { + namespace NodeJS { interface Global { expect: typeof expect; }