Skip to content

Commit

Permalink
Use jest.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mellevanderlinde committed Oct 26, 2024
1 parent d51c5b5 commit d0559fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/infra/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
import type { Config } from "jest";

const config: Config = {
testEnvironment: "node",
roots: ["<rootDir>/test"],
testMatch: ["**/*.test.ts"],
transform: {
"^.+\\.tsx?$": "ts-jest",
},
};

export default config;
6 changes: 5 additions & 1 deletion packages/reading-time/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
import type { Config } from "jest";

const config: Config = {
transform: {
"^.+\\.ts?$": "ts-jest",
},
};

export default config;

0 comments on commit d0559fd

Please sign in to comment.