mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 18:03:30 +08:00
85f52ff49e
* Add typescript support for jest * Add typescript support for jest setup-tests.ts * Some more bug fixing
17 lines
453 B
TypeScript
17 lines
453 B
TypeScript
import { defaults as tsjPreset } from "ts-jest/presets";
|
|
|
|
export default {
|
|
preset: "@shelf/jest-mongodb",
|
|
transform: tsjPreset.transform,
|
|
setupFilesAfterEnv: ["<rootDir>/__tests__/setup-tests.ts"],
|
|
modulePathIgnorePatterns: ["<rootDir>/__tests__/setup-tests.ts"],
|
|
coverageThreshold: {
|
|
global: {
|
|
// These percentages should never decrease
|
|
statements: 40,
|
|
branches: 40,
|
|
functions: 25,
|
|
lines: 43,
|
|
},
|
|
},
|
|
};
|