Skip to content

Commit

Permalink
fix: tests are passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Averethel committed Aug 2, 2022
1 parent 2270972 commit 3798e28
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion .jest/setup/jestDomExpects.ts

This file was deleted.

2 changes: 0 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ export default {
errorOnDeprecated: true,
moduleDirectories: ['node_modules', '<rootDir>'],
preset: 'ts-jest/presets/js-with-ts',
restoreMocks: true,
roots: ['<rootDir>/src'],
setupFilesAfterEnv: ['<rootDir>/.jest/setup/jestDomExpects.ts'],
testEnvironment: 'node',
testRegex: '(/__tests__/.*|(\\.|/)test)\\.tsx?$',
};
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true
"noImplicitAny": true,
"esModuleInterop": true,
},
"exclude": ["dist", "node_modules"],
"include": ["src"]
Expand Down

0 comments on commit 3798e28

Please # to comment.