mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
579cee3364
* Migrate cli to jest * Remove jasmine from browser * Remove coverage from browser since it's in the root gitignore
17 lines
486 B
JavaScript
17 lines
486 B
JavaScript
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"],
|
|
};
|