mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
Implement and extend tsconfig.base across projects (#14554)
* 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
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||
const { compilerOptions } = require("./tsconfig");
|
||||
const { compilerOptions } = require("../../tsconfig.base");
|
||||
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
||||
|
||||
/** @type {import('jest').Config} */
|
||||
@@ -9,13 +9,13 @@ module.exports = {
|
||||
testEnvironment: "jsdom",
|
||||
moduleNameMapper: pathsToModuleNameMapper(
|
||||
{
|
||||
"@bitwarden/common/spec": ["../../libs/common/spec"],
|
||||
"@bitwarden/common": ["../../libs/common/src/*"],
|
||||
"@bitwarden/admin-console/common": ["<rootDir>/libs/admin-console/src/common"],
|
||||
"@bitwarden/common/spec": ["libs/common/spec"],
|
||||
"@bitwarden/common": ["libs/common/src/*"],
|
||||
"@bitwarden/admin-console/common": ["libs/admin-console/src/common"],
|
||||
...(compilerOptions?.paths ?? {}),
|
||||
},
|
||||
{
|
||||
prefix: "<rootDir>/",
|
||||
prefix: "<rootDir>/../../",
|
||||
},
|
||||
),
|
||||
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
||||
|
||||
Reference in New Issue
Block a user