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"]