2019-05-15 23:20:50 +03:00
|
|
|
// @ts-check
|
|
|
|
|
|
|
|
/** @type {jest.InitialOptions} */
|
|
|
|
const config = {
|
|
|
|
transform: {
|
|
|
|
"^.+\\.ts$": "ts-jest",
|
|
|
|
},
|
|
|
|
moduleFileExtensions: ["ts", "js", "json", "node"],
|
|
|
|
moduleNameMapper: {},
|
|
|
|
collectCoverage: true,
|
|
|
|
collectCoverageFrom: ["src/**/*.ts", "!**/node_modules/**"],
|
|
|
|
coverageReporters: ["json", "lcov", "cobertura", "text", "html", "clover"],
|
|
|
|
coveragePathIgnorePatterns: ["/node_modules/", ".*/test/.*"],
|
2019-05-24 21:01:09 +03:00
|
|
|
modulePathIgnorePatterns: ['<rootDir>/sdk'],
|
2019-05-15 23:20:50 +03:00
|
|
|
globals: {
|
|
|
|
"ts-jest": {
|
|
|
|
tsConfig: "tsconfig.json",
|
|
|
|
},
|
|
|
|
},
|
2019-05-17 01:55:49 +03:00
|
|
|
setupFiles: ["<rootDir>/test/jest-setup.ts"],
|
2019-05-20 18:44:04 +03:00
|
|
|
testMatch: ["<rootDir>/src/**/*.test.ts"],
|
2019-05-15 23:20:50 +03:00
|
|
|
verbose: true,
|
|
|
|
testEnvironment: "node",
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|