mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-25 15:24:03 +08:00
* Add new rate limiting flow * Oops * Fix nit * Fix some bugs * Split key generation functions * Remove 429 * Change message for root limiter * Flag 429 and add config * Add status code config * Check enabled flag * Add custom status for ape keys * Bump coverage * swapped conditions around whats the point of checking if the status code is in the array if the whole thing is turned off anyway Co-authored-by: Miodec <bartnikjack@gmail.com>
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: 38,
|
|
branches: 38,
|
|
functions: 22,
|
|
lines: 42,
|
|
},
|
|
},
|
|
};
|