afterAll at top

This commit is contained in:
Moriz Wahl 2022-02-17 12:32:51 +01:00
parent fe8546da08
commit 4a5d1980a5

View File

@ -38,6 +38,11 @@ beforeAll(async () => {
await resetDB()
})
afterAll(async () => {
await resetDB(true)
await con.close()
})
describe('UserResolver', () => {
describe('createUser', () => {
const variables = {
@ -346,8 +351,3 @@ describe('UserResolver', () => {
})
})
})
afterAll(async () => {
await resetDB(true)
await con.close()
})