2021-02-02 22:15:11 +03:00
|
|
|
// @ts-check
|
|
|
|
|
|
|
|
const config = {
|
|
|
|
transform: {
|
|
|
|
"^.+\\.ts$": "ts-jest",
|
|
|
|
},
|
|
|
|
moduleFileExtensions: ["ts", "js", "json", "node"],
|
|
|
|
moduleNameMapper: {},
|
|
|
|
collectCoverage: true,
|
|
|
|
collectCoverageFrom: ["src/**/*.ts", "!**/node_modules/**"],
|
2021-03-04 03:32:15 +03:00
|
|
|
coverageReporters: ["json", "html", "cobertura"],
|
2021-02-02 22:15:11 +03:00
|
|
|
coveragePathIgnorePatterns: ["/node_modules/", ".*/test/.*"],
|
|
|
|
modulePathIgnorePatterns: ["<rootDir>/sdk"],
|
|
|
|
globals: {
|
|
|
|
"ts-jest": {
|
|
|
|
tsconfig: "tsconfig.json",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setupFilesAfterEnv: [],
|
|
|
|
verbose: true,
|
|
|
|
testEnvironment: "node",
|
|
|
|
};
|
|
|
|
|
2022-03-14 19:15:13 +03:00
|
|
|
// Disable ts-jest warning because we are using alpha version of jest 28.x to resolve this issue https://github.com/facebook/jest/issues/9771
|
|
|
|
process.env.TS_JEST_DISABLE_VER_CHECKER = "1";
|
|
|
|
|
2021-02-02 22:15:11 +03:00
|
|
|
module.exports = config;
|