mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
* Implement and extend tsconfig.base across projects * fixup! Merge remote-tracking branch 'origin/main' into rename-tsconfig * fix: import tsconfig.base from components * fix: skip typechecking node modules * fixing tests * fix the tests for real * undo accidentally change
23 lines
655 B
JavaScript
23 lines
655 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("../../tsconfig.base");
|
|
|
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
|
|
|
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
...sharedConfig,
|
|
setupFilesAfterEnv: ["../../apps/web/test.setup.ts"],
|
|
moduleNameMapper: pathsToModuleNameMapper(
|
|
{
|
|
"@bitwarden/common/spec": ["libs/common/spec"],
|
|
"@bitwarden/common": ["libs/common/src/*"],
|
|
"@bitwarden/admin-console/common": ["libs/admin-console/src/common"],
|
|
...(compilerOptions?.paths ?? {}),
|
|
},
|
|
{
|
|
prefix: "<rootDir>/../../",
|
|
},
|
|
),
|
|
};
|