1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[EC-194] Migrate browser to jest (#2646)

* Move browser to jest

* Remove karma from package.json

* Remove karma from eslintignore
This commit is contained in:
Oscar Hinton
2022-05-10 10:25:35 +02:00
committed by GitHub
parent c402adeec5
commit ec723fd057
7 changed files with 7615 additions and 1551 deletions

View File

@@ -0,0 +1,14 @@
const { pathsToModuleNameMapper } = require("ts-jest");
const { compilerOptions } = require("./tsconfig");
module.exports = {
collectCoverage: true,
coverageReporters: ["html", "lcov"],
coverageDirectory: "coverage",
preset: "jest-preset-angular",
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
prefix: "<rootDir>/",
}),
modulePathIgnorePatterns: ["jslib"],
};