diff --git a/packages/server/src/api/routes/tests/application.spec.ts b/packages/server/src/api/routes/tests/application.spec.ts index 6e41c8b4ec..fe8250bde5 100644 --- a/packages/server/src/api/routes/tests/application.spec.ts +++ b/packages/server/src/api/routes/tests/application.spec.ts @@ -14,13 +14,7 @@ jest.mock("../../../utilities/redis", () => ({ import { checkBuilderEndpoint } from "./utilities/TestFunctions" import * as setup from "./utilities" import { AppStatus } from "../../../db/utils" -import { - events, - utils, - context, - withEnv as withCoreEnv, - features, -} from "@budibase/backend-core" +import { events, utils, context, features } from "@budibase/backend-core" import env from "../../../environment" import { type App } from "@budibase/types" import tk from "timekeeper" diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index 3fc140e8e5..207420bf9f 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -13,8 +13,6 @@ import { context, InternalTable, tenancy, - withEnv as withCoreEnv, - setEnv as setCoreEnv, features, } from "@budibase/backend-core" import { quotas } from "@budibase/pro" @@ -41,7 +39,6 @@ import { TableSchema, JsonFieldSubType, RowExportFormat, - FeatureFlag, RelationSchemaField, } from "@budibase/types" import { generator, mocks } from "@budibase/backend-core/tests" diff --git a/packages/server/src/api/routes/tests/templates.spec.ts b/packages/server/src/api/routes/tests/templates.spec.ts index a4f9318720..d5483c54b4 100644 --- a/packages/server/src/api/routes/tests/templates.spec.ts +++ b/packages/server/src/api/routes/tests/templates.spec.ts @@ -2,11 +2,7 @@ import * as setup from "./utilities" import path from "path" import nock from "nock" import { generator } from "@budibase/backend-core/tests" -import { - withEnv as withCoreEnv, - env as coreEnv, - features, -} from "@budibase/backend-core" +import { features } from "@budibase/backend-core" interface App { background: string diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index fe926170b9..dce5a660b5 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -22,7 +22,6 @@ import { RelationshipType, TableSchema, RenameColumn, - FeatureFlag, BBReferenceFieldSubType, NumericCalculationFieldMetadata, ViewV2Schema, @@ -31,14 +30,7 @@ import { generator, mocks } from "@budibase/backend-core/tests" import { DatabaseName, getDatasource } from "../../../integrations/tests/utils" import merge from "lodash/merge" import { quotas } from "@budibase/pro" -import { - db, - roles, - withEnv as withCoreEnv, - setEnv as setCoreEnv, - env, - features, -} from "@budibase/backend-core" +import { db, roles, features } from "@budibase/backend-core" describe.each([ ["lucene", undefined], diff --git a/packages/server/src/appMigrations/migrations/tests/20240604153647_initial_sqs.spec.ts b/packages/server/src/appMigrations/migrations/tests/20240604153647_initial_sqs.spec.ts index 759665f1c2..fe44b7b901 100644 --- a/packages/server/src/appMigrations/migrations/tests/20240604153647_initial_sqs.spec.ts +++ b/packages/server/src/appMigrations/migrations/tests/20240604153647_initial_sqs.spec.ts @@ -4,7 +4,6 @@ import { db as dbCore, features, SQLITE_DESIGN_DOC_ID, - withEnv as withCoreEnv, } from "@budibase/backend-core" import { LinkDocument, diff --git a/packages/server/src/sdk/app/rows/search/tests/search.spec.ts b/packages/server/src/sdk/app/rows/search/tests/search.spec.ts index fce1e14094..4d8a6b6d69 100644 --- a/packages/server/src/sdk/app/rows/search/tests/search.spec.ts +++ b/packages/server/src/sdk/app/rows/search/tests/search.spec.ts @@ -10,11 +10,7 @@ import { import TestConfiguration from "../../../../../tests/utilities/TestConfiguration" import { search } from "../../../../../sdk/app/rows/search" import { generator } from "@budibase/backend-core/tests" -import { - withEnv as withCoreEnv, - setEnv as setCoreEnv, - features, -} from "@budibase/backend-core" +import { features } from "@budibase/backend-core" import { DatabaseName, getDatasource,