Skip to content

Commit

Permalink
fix jest
Browse files Browse the repository at this point in the history
  • Loading branch information
waki285 committed Aug 25, 2023
1 parent 61c6900 commit 9f35559
Show file tree
Hide file tree
Showing 3 changed files with 996 additions and 69 deletions.
10 changes: 8 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
const config = {
preset: "ts-jest",
testMatch: ['**/*.test.ts'],
transform: {
// '^.+\\.tsx?$': 'ts-jest',
'^.+\\.tsx?$': 'esbuild-jest',
},
testEnvironment: "node",
moduleNameMapper: {
"@/(.*)": "<rootDir>/src/$1"
},
};

export default config;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"esbuild": "^0.19.2",
"esbuild-jest": "^0.5.0",
"eslint": "^8.47.0",
"jest": "^29.6.3",
"prettier": "^3.0.2",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6",
"wrangler": "^3.5.1"
}
Expand Down
Loading

0 comments on commit 9f35559

Please sign in to comment.