2022-05-31 16:29:10 +02:00
|
|
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
|
|
|
|
const { compilerOptions } = require("./tsconfig");
|
|
|
|
|
2022-08-11 03:35:08 +02:00
|
|
|
const sharedConfig = require("../../libs/shared/jest.config.base");
|
|
|
|
|
2022-05-31 16:29:10 +02:00
|
|
|
module.exports = {
|
|
|
|
preset: "ts-jest",
|
2022-08-11 03:35:08 +02:00
|
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
2022-05-31 16:29:10 +02:00
|
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
|
|
prefix: "<rootDir>/",
|
|
|
|
}),
|
|
|
|
};
|