mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 02:43:04 +01:00
80f5a883e0
* Extract files only used in cli out of libs/node Move commands from libs/node to cli Move program from libs/node to cli Move services from libs/node to cli Move specs from libs/node to cli Naming changes based on ADR 12 Rename commands Rename models/request Rename models/response Remove entries from whitelist-capital-letters.txt * Merge lowDbStorageService into base class Move logic from extended lowdbStorage.service.ts into base-lowdb-storage.service.ts Delete lowdb-storage.service.ts Rename base-lowdb-storage.service.ts to lowdb-storage.service.ts * Merge login.command with base class program.ts - changed import temporarily to make it easier to review Remove passing in clientId, set "cli" when constructing ssoRedirectUri call Remove setting callbacks, use private methods instead Remove i18nService from constructor params Add syncService, keyConnectorService and logoutCallback to constructor Merge successCallback with handleSuccessResponse Remove validatedParams callback and added private method Move options(program.OptionValues) and set in run() Delete login.command.ts * Rename base-login.command.ts to login.command.ts * Merge base.program.ts with program.ts
15 lines
430 B
JavaScript
15 lines
430 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
const { compilerOptions } = require("./tsconfig.json");
|
|
|
|
const sharedConfig = require("../../libs/shared/jest.config.base");
|
|
|
|
module.exports = {
|
|
...sharedConfig,
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/",
|
|
}),
|
|
};
|