fix typings

This commit is contained in:
Ulf Gebhardt 2023-12-12 09:08:05 +01:00
parent c2ecf88674
commit eaab01009c
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,6 @@ main()
console.error(e) console.error(e)
throw e throw e
}) })
.finally(async () => { .finally(() => {
await prisma.$disconnect() void prisma.$disconnect()
}) })

View File

@ -3,7 +3,9 @@ import { startStandaloneServer } from '@apollo/server/standalone'
import { listen } from './server' import { listen } from './server'
jest.mock('@apollo/server/standalone', () => { jest.mock('@apollo/server/standalone', () => {
const originalModule = jest.requireActual('@apollo/server/standalone') const originalModule = jest.requireActual<typeof import('@apollo/server/standalone')>(
'@apollo/server/standalone',
)
return { return {
__esModule: true, __esModule: true,
...originalModule, ...originalModule,

View File

@ -5,5 +5,5 @@ export const deleteAll = async () => {
} }
export const disconnect = async () => { export const disconnect = async () => {
prisma.$disconnect() await prisma.$disconnect()
} }