Flaky test
This commit is contained in:
parent
0a47b35285
commit
2f2c8a50cc
|
@ -16,14 +16,11 @@ describe("/automations", () => {
|
||||||
|
|
||||||
afterAll(setup.afterAll)
|
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()
|
await config.init()
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
jest.clearAllMocks()
|
|
||||||
})
|
|
||||||
|
|
||||||
describe("get definitions", () => {
|
describe("get definitions", () => {
|
||||||
it("returns a list of definitions for actions", async () => {
|
it("returns a list of definitions for actions", async () => {
|
||||||
const res = await request
|
const res = await request
|
||||||
|
@ -123,10 +120,6 @@ describe("/automations", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("test", () => {
|
describe("test", () => {
|
||||||
beforeEach(async () => {
|
|
||||||
await config.init()
|
|
||||||
})
|
|
||||||
|
|
||||||
it("tests the automation successfully", async () => {
|
it("tests the automation successfully", async () => {
|
||||||
let table = await config.createTable()
|
let table = await config.createTable()
|
||||||
let automation = newAutomation()
|
let automation = newAutomation()
|
||||||
|
|
Loading…
Reference in New Issue