diff --git a/packages/core/test/src/client/e2eUtils.ts b/packages/core/test/src/client/e2eUtils.ts index d362040a0..1311369d8 100644 --- a/packages/core/test/src/client/e2eUtils.ts +++ b/packages/core/test/src/client/e2eUtils.ts @@ -165,7 +165,7 @@ class NocoPage { } } -export const test = base.extend<{ +const _test = base.extend<{ mockPage: (config?: PageConfig) => NocoPage; createCollections: (collectionSettings: CollectionSetting | CollectionSetting[]) => Promise; }>({ @@ -206,6 +206,11 @@ export const test = base.extend<{ }, }); +export const test = Object.assign(_test, { + /** 只运行在 postgres 数据库中 */ + pgOnly: process.env.DB_DIALECT == 'postgres' ? _test : _test.skip, +}); + const getStorageItem = (key: string, storageState: any) => { return storageState.origins .find((item) => item.origin === `http://localhost:${process.env.APP_PORT}`)