You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
530 B
18 lines
530 B
const { pathsToModuleNameMapper } = require("ts-jest"); |
|
|
|
const { compilerOptions } = require("./tsconfig"); |
|
|
|
module.exports = { |
|
name: "common", |
|
displayName: "common jslib tests", |
|
preset: "ts-jest", |
|
testEnvironment: "jsdom", |
|
testMatch: ["**/+(*.)+(spec).+(ts)"], |
|
setupFilesAfterEnv: ["<rootDir>/spec/test.ts"], |
|
collectCoverage: true, |
|
coverageReporters: ["html", "lcov"], |
|
coverageDirectory: "coverage", |
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, { |
|
prefix: "<rootDir>/", |
|
}), |
|
};
|
|
|