UNPKG

@myria/api-request

Version:
28 lines (25 loc) 973 B
import type { Config } from "jest"; const config: Config = { rootDir: "../", moduleFileExtensions: ["ts", "json", "js"], setupFiles: ["./tests/setup/setup-jest-mock-3rds.ts"], testTimeout: 3000, verbose: true, preset: "ts-jest", testEnvironment: "node", bail: 1, testRegex: ".*\\.test\\.ts$", notify: true, collectCoverage: true, coverageDirectory: "./coverage", collectCoverageFrom: ["./src/*.{ts,js,jsx}"], coverageThreshold: { global: { branches: 80, // The number of the branches of the control structures, like if-then, that have been executed. functions: 80, // The number of functions that have been called. lines: 0, // The number of lines of source code that have been tested. a Line can have multiply statements e.g. const a = 1; b = 2; statements: 0, // The number of statements that have been executed. }, }, }; export default config;