Fix timeouts

This commit is contained in:
adrinr 2023-04-11 14:20:15 +01:00
parent c77ed3d737
commit 9a330b85f8
1 changed files with 5 additions and 2 deletions

View File

@ -19,11 +19,14 @@ describe("/automations", () => {
afterAll(setup.afterAll)
// For some reason this cannot be a beforeAll or the test "tests the automation successfully" fail
beforeEach(async () => {
beforeAll(async () => {
await config.init()
})
beforeEach(() => {
events.automation.deleted.mockClear()
})
describe("get definitions", () => {
it("returns a list of definitions for actions", async () => {
const res = await request