unit test coverageto 100%

This commit is contained in:
Moriz Wahl 2023-12-05 15:46:41 +01:00
parent 090972e467
commit 0c76fb4746
3 changed files with 9 additions and 9 deletions

View File

@ -4,10 +4,10 @@ module.exports = {
verbose: true,
preset: 'ts-jest',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**', '!src/seeds/**', '!build/**'],
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**', '!src/index.ts', '!build/**'],
coverageThreshold: {
global: {
lines: 78,
lines: 100,
},
},
setupFiles: ['./test/testSetup.ts'],

View File

@ -1,6 +1,12 @@
// eslint-disable-next-line import/no-unassigned-import
import 'reflect-metadata'
import { main } from './server/server'
import { listen } from './server/server'
export async function main() {
await listen(4000)
// eslint-disable-next-line no-console
console.log('🚀 Server is ready at http://localhost:4000/graphql')
}
main().catch((e) => {
// eslint-disable-next-line no-console

View File

@ -16,9 +16,3 @@ export async function listen(port: number) {
return app.listen(port)
}
export async function main() {
await listen(4000)
// eslint-disable-next-line no-console
console.log('🚀 Server is ready at http://localhost:4000/graphql')
}