import type { Config } from "@jest/types" ; import { pathsToModuleNameMapper } from "ts-jest/utils" ; import { compilerOptions } from "../../tsconfig.json" ; const config = { preset : "ts-jest" , moduleNameMapper : pathsToModuleNameMapper ( compilerOptions . paths , { prefix : "<rootDir>/../../" , } ) , } ; export default config ;