mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
- 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
16 lines
414 B
TypeScript
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>/",
|
|
}),
|
|
};
|