mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-04 09:01:01 +01:00
17 lines
515 B
JavaScript
17 lines
515 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("../shared/tsconfig.libs");
|
|
|
|
module.exports = {
|
|
displayName: "libs/angular tests",
|
|
preset: "jest-preset-angular",
|
|
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
|
setupFilesAfterEnv: ["<rootDir>/spec/test.setup.ts"],
|
|
collectCoverage: true,
|
|
coverageReporters: ["html", "lcov"],
|
|
coverageDirectory: "coverage",
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/",
|
|
}),
|
|
};
|