This commit is contained in:
Adria Navarro 2024-01-30 09:23:28 +01:00
parent 9da9935c95
commit 1024bd1dbf
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import tk from "timekeeper"
tk.freeze(Date.now())
// Mock out postgres for this
jest.mock("pg")
@ -20,10 +19,13 @@ jest.mock("@budibase/backend-core", () => {
import * as setup from "./utilities"
import { checkBuilderEndpoint } from "./utilities/TestFunctions"
import { checkCacheForDynamicVariable } from "../../../threads/utils"
const { basicQuery, basicDatasource } = setup.structures
import { events, db as dbCore } from "@budibase/backend-core"
import { Datasource, Query, SourceName } from "@budibase/types"
tk.freeze(Date.now())
const mockIsProdAppID = dbCore.isProdAppID as jest.MockedFunction<
typeof dbCore.isProdAppID
>

View File

@ -21,9 +21,8 @@ import {
Table,
INTERNAL_TABLE_SOURCE_ID,
TableSourceType,
AutomationIOType,
Query,
} from "@budibase/types"
import { Query } from "@budibase/types"
const { BUILTIN_ROLE_IDS } = roles