mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
18 lines
499 B
JavaScript
18 lines
499 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("../../../shared/tsconfig.libs");
|
|
|
|
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
|
roots: ["<rootDir>/libs/tools/send/send-ui/src"],
|
|
transform: {
|
|
"^.+\\.(ts|tsx)$": "ts-jest",
|
|
},
|
|
preset: "ts-jest",
|
|
testEnvironment: "jsdom",
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/../../../",
|
|
}),
|
|
};
|