mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
f43272f243
* scaffold new lib * update jest config * update tsconfig * add readme * update tailwind config * update package-lock * update tsconfigs * update jest displayName * update tsconfig.libs.json * fix alias glob * update package lock * add readme to whitelist-capital-letters * update CODEOWNERS * remove test utils * update eslint rules * alphabetize eslint and tsconfig * sort jest config --------- Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
17 lines
498 B
JavaScript
17 lines
498 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
|
|
const { compilerOptions } = require("../shared/tsconfig.libs");
|
|
|
|
const sharedConfig = require("../../libs/shared/jest.config.angular");
|
|
|
|
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
...sharedConfig,
|
|
displayName: "libs/auth tests",
|
|
preset: "jest-preset-angular",
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/",
|
|
}),
|
|
};
|