mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-20 20:01:22 +00:00
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:
commit
309c89ecf8
@ -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 () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user