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
27 lines
752 B
JavaScript
27 lines
752 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("../../../../tsconfig.base");
|
|
|
|
const { createCjsPreset } = require("jest-preset-angular/presets");
|
|
|
|
// FIXME: Should use the shared config!
|
|
const presetConfig = createCjsPreset({
|
|
tsconfig: "<rootDir>/tsconfig.spec.json",
|
|
astTransformers: {
|
|
before: ["<rootDir>/../../../shared/es2020-transformer.ts"],
|
|
},
|
|
diagnostics: {
|
|
ignoreCodes: ["TS151001"],
|
|
},
|
|
});
|
|
|
|
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
...presetConfig,
|
|
displayName: "tools/send-ui tests",
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/../../../../",
|
|
}),
|
|
};
|