mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-14 19:46:29 +08:00
46e0c5c960
* 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
16 lines
375 B
TypeScript
16 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,
|
|
},
|
|
},
|
|
};
|