From ac62fc0e292c0e1f2f4a0c1acafe94639e70f104 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 9 Aug 2024 14:29:19 +0200 Subject: [PATCH] Fix jest asserts --- packages/server/src/api/routes/tests/viewV2.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index b714dcf5b6..ad6652635f 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -121,6 +121,7 @@ describe.each([ }) beforeEach(() => { + jest.clearAllMocks() mocks.licenses.useCloudFree() }) @@ -1604,7 +1605,7 @@ describe.each([ expect(response.rows).toHaveLength(0) }) - it("queries the row api passing the view fields only", async () => { + it.only("queries the row api passing the view fields only", async () => { const searchSpy = jest.spyOn(sdk.rows, "search") const view = await config.api.viewV2.create({