Server/project/jest.config.ts

16 lines
452 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import type { JestConfigWithTsJest } from "ts-jest";
import { pathsToModuleNameMapper } from "ts-jest";
2023-03-03 16:23:46 +01:00
import { compilerOptions } from "./tsconfig.json";
const config: JestConfigWithTsJest = {
preset: "ts-jest",
testEnvironment: "./tests/CustomEnvironment.ts",
2023-03-03 16:23:46 +01:00
roots: [
"./tests/"
],
modulePaths: [ compilerOptions.baseUrl ],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths)
};
export default config;