1
0
Fork 0
mirror of synced 2024-08-14 17:42:01 +12:00

Flaky test

This commit is contained in:
Adria Navarro 2023-02-05 10:33:21 +00:00
parent 0a47b35285
commit 2f2c8a50cc

View file

@ -16,14 +16,11 @@ describe("/automations", () => {
afterAll(setup.afterAll)
beforeAll(async () => {
// For some reason this cannot be a beforeAll or the test "tests the automation successfully" fail
beforeEach(async () => {
await config.init()
})
beforeEach(() => {
jest.clearAllMocks()
})
describe("get definitions", () => {
it("returns a list of definitions for actions", async () => {
const res = await request
@ -123,10 +120,6 @@ describe("/automations", () => {
})
describe("test", () => {
beforeEach(async () => {
await config.init()
})
it("tests the automation successfully", async () => {
let table = await config.createTable()
let automation = newAutomation()