mirror of
https://github.com/bitwarden/browser
synced 2024-12-20 22:47:26 +01:00
414ee2563f
* Create state for biometric client key halves * Move enc string util to central utils * Provide biometric state through service * Use biometric state to track client key half * Create migration for client key half * Ensure client key half is removed on logout * Remove account data for client key half * Remove unnecessary key definition likes * Remove moved state from account * Fix null-conditional operator failure * Simplify migration * Remove lame test * Fix test type * Add migrator * Prefer userKey when legacy not needed * Fix tests
19 lines
531 B
JavaScript
19 lines
531 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("./tsconfig");
|
|
|
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
|
|
|
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
...sharedConfig,
|
|
preset: "jest-preset-angular",
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
|
moduleNameMapper: pathsToModuleNameMapper(
|
|
{ "@bitwarden/common/spec": ["../../libs/common/spec"], ...(compilerOptions?.paths ?? {}) },
|
|
{
|
|
prefix: "<rootDir>/",
|
|
},
|
|
),
|
|
};
|