Add Jest to support backend unit tests

This commit is contained in:
Felipe Knorr Kuhn
2022-07-07 12:21:30 -07:00
parent d46e1abd07
commit 352f0817d9
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;