From 3fe7a9f4cbd02de1eab0cf510a5001b89abc1379 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 6 Sep 2023 12:51:08 +0200 Subject: [PATCH] Unmock pg --- packages/server/src/api/routes/tests/row.spec.ts | 3 ++- packages/server/src/integrations/tests/utils/index.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index d9fa0938e1..968f5ff6c3 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -1,3 +1,5 @@ +import { databaseTestProviders } from "../../../integrations/tests/utils" + import tk from "timekeeper" import { outputProcessing } from "../../../utilities/rowProcessor" import * as setup from "./utilities" @@ -20,7 +22,6 @@ import { generator, structures, } from "@budibase/backend-core/tests" -import { databaseTestProviders } from "../../../integrations/tests/utils" const timestamp = new Date("2023-01-26T11:48:57.597Z").toISOString() tk.freeze(timestamp) diff --git a/packages/server/src/integrations/tests/utils/index.ts b/packages/server/src/integrations/tests/utils/index.ts index 8893ce67f3..c145a9c809 100644 --- a/packages/server/src/integrations/tests/utils/index.ts +++ b/packages/server/src/integrations/tests/utils/index.ts @@ -1,3 +1,5 @@ +jest.unmock("pg") + import { Datasource } from "@budibase/types" import * as pg from "./postgres"