GildedRose-Refactoring-Kata/TypeScript/jest.config.ts
Arno Chauveau cc8a2b35b0 Refactor tests
- moved snapshot tests to better named folder
- refactored gilded-rose tests to unit tests in their right location.
- mock implementation details in gilded rose test
- wrote unit tests for behavior resolver
- fix testing config to account for the changes
2025-07-24 12:56:19 +02:00

16 lines
414 B
TypeScript

import { pathsToModuleNameMapper } from "ts-jest";
import { compilerOptions } from "./tsconfig.json";
export default {
roots: ["<rootDir>/app", "<rootDir>/snapshot-tests"],
collectCoverage: true,
coverageDirectory: "coverage",
coverageProvider: "v8",
transform: {
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: "<rootDir>/",
}),
};