1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

Migrate cli to jest (#2759)

* Migrate cli to jest

* Remove jasmine from browser

* Remove coverage from browser since it's in the root gitignore
This commit is contained in:
Oscar Hinton
2022-05-31 16:29:10 +02:00
committed by GitHub
parent f57f97fcdc
commit 579cee3364
13 changed files with 4704 additions and 318 deletions

16
apps/cli/jest.config.js Normal file
View File

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