Merge pull request #4179 from Ocelot-Social-Community/statistics-test

bug: DB Reset At Start Of Statistics Test In Backend
This commit is contained in:
Ulf Gebhardt 2021-01-29 12:06:03 +01:00 committed by GitHub
commit 309c89ecf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ const statisticsQuery = gql`
}
}
`
beforeAll(() => {
beforeAll(async () => {
authenticatedUser = undefined
const { server } = createServer({
context: () => {
@ -33,6 +33,7 @@ beforeAll(() => {
},
})
query = createTestClient(server).query
await cleanDatabase()
})
afterEach(async () => {