2022-05-12 17:33:49 +02:00
|
|
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
|
|
|
|
const { compilerOptions } = require("./tsconfig");
|
|
|
|
|
2023-05-22 20:19:16 +02:00
|
|
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
2022-08-11 03:35:08 +02:00
|
|
|
|
2023-05-22 20:19:16 +02:00
|
|
|
/** @type {import('jest').Config} */
|
2022-05-12 17:33:49 +02:00
|
|
|
module.exports = {
|
2022-08-11 03:35:08 +02:00
|
|
|
...sharedConfig,
|
2022-06-03 18:01:07 +02:00
|
|
|
displayName: "libs/components tests",
|
2022-05-12 17:33:49 +02:00
|
|
|
preset: "jest-preset-angular",
|
2022-08-11 03:35:08 +02:00
|
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
2022-05-12 17:33:49 +02:00
|
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
|
|
prefix: "<rootDir>/",
|
|
|
|
}),
|
|
|
|
};
|