16 lines
429 B
TypeScript
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;
|