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)
throw e
})
.finally(async () => {
await prisma.$disconnect()
.finally(() => {
void prisma.$disconnect()
})

View File

@ -3,7 +3,9 @@ import { startStandaloneServer } from '@apollo/server/standalone'
import { listen } from './server'
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 {
__esModule: true,
...originalModule,

View File

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