Server/project/jest.config.ts
2023-03-03 15:23:46 +00:00

16 lines
429 B
TypeScript

import { pathsToModuleNameMapper } from "ts-jest";
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)
};
export default config;