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:
16
apps/cli/jest.config.js
Normal file
16
apps/cli/jest.config.js
Normal 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"],
|
||||
};
|
||||
Reference in New Issue
Block a user