mirror of
https://github.com/bitwarden/browser
synced 2024-12-16 19:30:28 +01:00
18 lines
530 B
JavaScript
18 lines
530 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("../shared/tsconfig.libs");
|
|
|
|
module.exports = {
|
|
displayName: "libs/common tests",
|
|
preset: "ts-jest",
|
|
testEnvironment: "jsdom",
|
|
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
|
setupFilesAfterEnv: ["<rootDir>/spec/test.setup.ts"],
|
|
collectCoverage: true,
|
|
coverageReporters: ["html", "lcov"],
|
|
coverageDirectory: "coverage",
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/",
|
|
}),
|
|
};
|