Skip to content

Commit

Permalink
converting jest config file to .ts extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jowo-io committed Nov 24, 2023
1 parent d292b52 commit c59516e
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 28 deletions.
5 changes: 0 additions & 5 deletions jest.config.json

This file was deleted.

9 changes: 9 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Config } from "jest";

const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/src"],
};

export default config;
161 changes: 141 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"next-auth": "^4",
"react": "^18.2.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"baseUrl": "./",

"paths": {
"next": ["node_modules/next"],
"next-auth": ["node_modules/next-auth"],
"react": ["node_modules/react"]
"next": ["./node_modules/next"],
"next-auth": ["./node_modules/next-auth"],
"react": ["./node_modules/react"]
}
},
"include": ["src"],
Expand Down

0 comments on commit c59516e

Please sign in to comment.