monkeytype/backend/jest.config.ts
Jack 46e0c5c960
Auto ban (#2984)
* added auto ban if user triggers anticheat too much

* updated base configuration

* autoban is optional

* storing updated autoban array

* only checking autoban in time 15 and 60

* miliseconds

* removed unnecessary if check

* returning if already banned

* storing now in variable
greater not greater equal

* moved constant outside function

* using partial type

* renamed variables

* renamed to autoBanTimestamps

* added autoban tests

* increased coverage minimum

* slightly better test

* added autoBanTimestamps checks to other tests
2022-05-16 21:03:44 +02:00

17 lines
375 B
TypeScript

import { defaults as tsjPreset } from "ts-jest/presets";
export default {
preset: "@shelf/jest-mongodb",
transform: tsjPreset.transform,
setupFilesAfterEnv: ["<rootDir>/setup-tests.ts"],
coverageThreshold: {
global: {
// These percentages should never decrease
statements: 37,
branches: 38,
functions: 20,
lines: 40,
},
},
};