2022-05-05 21:19:31 +08:00
|
|
|
import { defaults as tsjPreset } from "ts-jest/presets";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
preset: "@shelf/jest-mongodb",
|
|
|
|
transform: tsjPreset.transform,
|
2023-01-26 21:13:14 +08:00
|
|
|
setupFilesAfterEnv: ["<rootDir>/__tests__/setup-tests.ts"],
|
|
|
|
modulePathIgnorePatterns: ["<rootDir>/__tests__/setup-tests.ts"],
|
2022-05-06 05:06:40 +08:00
|
|
|
coverageThreshold: {
|
|
|
|
global: {
|
2022-05-13 15:05:57 +08:00
|
|
|
// These percentages should never decrease
|
2022-07-07 03:01:58 +08:00
|
|
|
statements: 40,
|
|
|
|
branches: 40,
|
2022-09-05 18:13:55 +08:00
|
|
|
functions: 25,
|
2022-07-07 03:01:58 +08:00
|
|
|
lines: 43,
|
2022-05-06 05:06:40 +08:00
|
|
|
},
|
|
|
|
},
|
2022-05-05 21:19:31 +08:00
|
|
|
};
|