Server/project/jest.config.ts

14 lines
413 B
TypeScript
Raw Normal View History

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