diff --git a/app/jest.config.ts b/app/jest.config.ts new file mode 100644 index 0000000..a4ffafa --- /dev/null +++ b/app/jest.config.ts @@ -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; diff --git a/app/package.json b/app/package.json index 5f97a29..9326317 100644 --- a/app/package.json +++ b/app/package.json @@ -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" } }