Add Jest to support backend unit tests

This commit is contained in:
Felipe Knorr Kuhn
2022-07-07 12:21:30 -07:00
parent 5ba28f9aaa
commit 5cb5426543
4 changed files with 5888 additions and 137 deletions

17
backend/jest.config.ts Normal file
View File

@@ -0,0 +1,17 @@
import type { Config } from "@jest/types"
const config: Config.InitialOptions = {
preset: "ts-jest",
testEnvironment: "node",
verbose: true,
automock: false,
collectCoverage: true,
collectCoverageFrom: ["./src/**/**.ts"],
coverageProvider: "v8",
coverageThreshold: {
global: {
lines: 90
}
}
}
export default config;