2019-05-08 21:39:02 +03:00
|
|
|
// @ts-check
|
|
|
|
|
|
|
|
/** @type {jest.InitialOptions} */
|
|
|
|
module.exports = {
|
|
|
|
transform: {
|
2020-11-24 06:07:36 +03:00
|
|
|
"^.+\\.tsx?$": "ts-jest",
|
2019-05-08 21:39:02 +03:00
|
|
|
},
|
|
|
|
testEnvironment: "node",
|
|
|
|
moduleFileExtensions: ["ts", "js", "json", "node"],
|
|
|
|
moduleNameMapper: {},
|
|
|
|
collectCoverage: true,
|
|
|
|
collectCoverageFrom: ["./lib/**/*.ts", "!**/node_modules/**"],
|
|
|
|
coverageReporters: ["json", "lcov", "cobertura", "text", "html", "clover"],
|
|
|
|
coveragePathIgnorePatterns: ["/node_modules/", ".*/tests/.*"],
|
2023-12-14 02:46:55 +03:00
|
|
|
testPathIgnorePatterns: [
|
|
|
|
"/\\.autopull/",
|
|
|
|
"/utilities.helpers.ts"
|
|
|
|
],
|
2019-05-08 21:39:02 +03:00
|
|
|
globals: {
|
|
|
|
"ts-jest": {
|
2023-12-14 02:46:55 +03:00
|
|
|
tsconfig: "tsconfig.json",
|
2020-11-24 06:07:36 +03:00
|
|
|
},
|
2019-05-08 21:39:02 +03:00
|
|
|
},
|
2021-03-24 11:48:10 +03:00
|
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup-file.js"],
|
2019-05-08 21:39:02 +03:00
|
|
|
testMatch: ["**/test/**/*.ts", "!**/test/**/*.d.ts", "!**/test/sample.ts"],
|
2020-11-24 06:07:36 +03:00
|
|
|
verbose: true,
|
|
|
|
};
|