mirror of
https://github.com/IT4Change/boilerplate-backend.git
synced 2025-12-12 18:05:49 +00:00
fix typings
This commit is contained in:
parent
c2ecf88674
commit
eaab01009c
@ -16,6 +16,6 @@ main()
|
||||
console.error(e)
|
||||
throw e
|
||||
})
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect()
|
||||
.finally(() => {
|
||||
void prisma.$disconnect()
|
||||
})
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -5,5 +5,5 @@ export const deleteAll = async () => {
|
||||
}
|
||||
|
||||
export const disconnect = async () => {
|
||||
prisma.$disconnect()
|
||||
await prisma.$disconnect()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user