Skip to content

Commit

Permalink
Move Jest configuration from package.json to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Sep 17, 2024
1 parent 9fb47fe commit 1269368
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
15 changes: 15 additions & 0 deletions app/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Config } from "jest";

const config: Config = {
moduleFileExtensions: ["js", "json", "ts"],
rootDir: "src",
testRegex: ".*\\.spec\\.ts$",
transform: {
"^.+\\.(t|j)s$": "ts-jest",
},
collectCoverageFrom: ["**/*.(t|j)s"],
coverageDirectory: "../coverage",
testEnvironment: "node",
};

export default config;
17 changes: 0 additions & 17 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,5 @@
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3",
"typescript-eslint": "^8.4.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}

0 comments on commit 1269368

Please sign in to comment.