Server/project/jest.config.ts

16 lines
429 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
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;