diff --git a/packages/nocodb/tests/unit/init/cleanupMeta.ts b/packages/nocodb/tests/unit/init/cleanupMeta.ts index 0ba32f8065..e03a8500a7 100644 --- a/packages/nocodb/tests/unit/init/cleanupMeta.ts +++ b/packages/nocodb/tests/unit/init/cleanupMeta.ts @@ -1,8 +1,7 @@ -import { Base, Model } from '../../../src/models'; -import NcConnectionMgrv2 from '../../../src/utils/common/NcConnectionMgrv2'; -import { orderedMetaTables } from '../../../src/utils/globals'; +import { Base, Model } from '~/models'; +import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2'; +import { orderedMetaTables } from '~/utils/globals'; import TestDbMngr from '../TestDbMngr'; -import { isPg } from './db'; const dropTablesAllNonExternalProjects = async () => { const bases = await Base.list({}); diff --git a/packages/nocodb/tests/unit/init/index.ts b/packages/nocodb/tests/unit/init/index.ts index 9ce7e4fd22..66f664841f 100644 --- a/packages/nocodb/tests/unit/init/index.ts +++ b/packages/nocodb/tests/unit/init/index.ts @@ -41,7 +41,9 @@ export default async function (forceReset = false, roles = 'editor') { const { token, user } = await createUser({ app: server }, { roles }); - const extra: any = {}; + const extra: { + fk_workspace_id?: string; + } = {}; // create ws for ee if (process.env.EE === 'true') { diff --git a/packages/nocodb/tests/unit/rest/index.test.ts b/packages/nocodb/tests/unit/rest/index.test.ts index f14c76c4e3..48a0444d02 100644 --- a/packages/nocodb/tests/unit/rest/index.test.ts +++ b/packages/nocodb/tests/unit/rest/index.test.ts @@ -13,8 +13,10 @@ import groupByTest from './tests/groupby.test'; import formulaTests from './tests/formula.test'; let workspaceTest = () => {}; +let ssoTest = () => {}; if (process.env.EE === 'true') { workspaceTest = require('./tests/ee/workspace.test').default; + ssoTest = require('./tests/ee/sso.test').default; } // import layoutTests from './tests/layout.test'; // import widgetTest from './tests/widget.test'; @@ -33,6 +35,7 @@ function restTests() { groupByTest(); workspaceTest(); formulaTests(); + ssoTest(); // Enable for dashboard feature // widgetTest();