diff --git a/jest.config.js b/jest.config.js index e76d7d0..bbd1e5f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -13,7 +13,6 @@ const config = { 'ts-jest', { useESM: true, - isolatedModules: true, tsconfig: 'tsconfig.json', }, ], diff --git a/tests/setupTests.ts b/tests/setupTests.ts index c49769e..fec830f 100644 --- a/tests/setupTests.ts +++ b/tests/setupTests.ts @@ -12,6 +12,7 @@ beforeEach(async () => { console.error = jestObj.fn(); console.warn = jestObj.fn(); console.info = jestObj.fn(); + console.debug = jestObj.fn(); }); afterEach(() => { @@ -19,6 +20,7 @@ afterEach(() => { console.error = originalConsole.error; console.warn = originalConsole.warn; console.info = originalConsole.info; + console.debug = originalConsole.debug; }); export {}; diff --git a/tsconfig.json b/tsconfig.json index 1db5bc9..58dcc24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "moduleResolution": "node", "allowImportingTsExtensions": true, "esModuleInterop": true, + "isolatedModules": true, "noEmit": true, "typeRoots": ["node_modules/@types", "src/@types"] },