mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[SG-487] Web component unit tests (#3189)
* Configure jest for web * attempt to fix linter fule preventing angular core imports * trial initiation tests * small trial initiation component fix * Small naming fix in tests
This commit is contained in:
15
apps/web/jest.config.js
Normal file
15
apps/web/jest.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { pathsToModuleNameMapper } = require("ts-jest");
|
||||
|
||||
const { compilerOptions } = require("./tsconfig");
|
||||
|
||||
module.exports = {
|
||||
collectCoverage: true,
|
||||
coverageReporters: ["html", "lcov"],
|
||||
coverageDirectory: "coverage",
|
||||
preset: "jest-preset-angular",
|
||||
setupFilesAfterEnv: ["<rootDir>/test.config.ts"],
|
||||
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
||||
prefix: "<rootDir>/",
|
||||
}),
|
||||
modulePathIgnorePatterns: ["jslib"],
|
||||
};
|
||||
Reference in New Issue
Block a user