Skip to content

Commit

Permalink
WIP: ts-jest configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirus-ua committed Jun 6, 2024
1 parent f52ea2a commit 5f642eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ module.exports = {
],
transformIgnorePatterns: ["/node_modules/(?!date-fns)"],
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest",
"^.+\\.(js|jsx)$": "babel-jest",
// TODO: use it after the migration
// "^.+\\.ts?$": "ts-jest",
"^.+\\.(ts|tsx)$": "ts-jest",
"node_modules/(?!date-fns/.*)": "ts-jest",
},
};
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"sourceMap": true,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "src",
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"esModuleInterop": true,
"baseUrl": "src/",
"typeRoots": ["./src/@types"]
"typeRoots": ["./src/@types", "./node_modules/@types"],
"types": ["node", "jest"]
},
"include": ["src/**/*"],
"include": ["src/**/*", "test/**/*"],
"exclude": ["node_modules", "dist"]
}

0 comments on commit 5f642eb

Please sign in to comment.