From 3798e28a169a3de2d7474201b049820a923227e1 Mon Sep 17 00:00:00 2001 From: Krzysztof Sakwerda Date: Tue, 2 Aug 2022 14:16:10 +0200 Subject: [PATCH] fix: tests are passing --- .gitignore | 4 ++++ .jest/setup/jestDomExpects.ts | 1 - jest.config.ts | 2 -- tsconfig.json | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 .jest/setup/jestDomExpects.ts diff --git a/.gitignore b/.gitignore index 3bdf8ab..b4f0663 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ dist/ *.tsbuildinfo .npm .eslintcache +src/__tests__/.next/next-page-bundlesize.config.json +src/__tests__/.next/.bundlesize* +src/__tests__/.next/new-master-config.json +src/__tests__/.next/bundlesize.json diff --git a/.jest/setup/jestDomExpects.ts b/.jest/setup/jestDomExpects.ts deleted file mode 100644 index 666127a..0000000 --- a/.jest/setup/jestDomExpects.ts +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom/extend-expect'; diff --git a/jest.config.ts b/jest.config.ts index 27e552f..4d76ba9 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -4,9 +4,7 @@ export default { errorOnDeprecated: true, moduleDirectories: ['node_modules', ''], preset: 'ts-jest/presets/js-with-ts', - restoreMocks: true, roots: ['/src'], - setupFilesAfterEnv: ['/.jest/setup/jestDomExpects.ts'], testEnvironment: 'node', testRegex: '(/__tests__/.*|(\\.|/)test)\\.tsx?$', }; diff --git a/tsconfig.json b/tsconfig.json index 60b5fab..ab0661f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,8 @@ "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "noImplicitAny": true + "noImplicitAny": true, + "esModuleInterop": true, }, "exclude": ["dist", "node_modules"], "include": ["src"]