From d3fb665e61f2256891011742b6e64ff45aaa741d Mon Sep 17 00:00:00 2001 From: Chareice Date: Wed, 15 Feb 2023 10:10:44 +0800 Subject: [PATCH] fix: test --- packages/plugins/collection-manager/src/__tests__/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/collection-manager/src/__tests__/index.ts b/packages/plugins/collection-manager/src/__tests__/index.ts index 7888983ee..26d3c74c7 100644 --- a/packages/plugins/collection-manager/src/__tests__/index.ts +++ b/packages/plugins/collection-manager/src/__tests__/index.ts @@ -9,7 +9,7 @@ export async function createApp(options = {}) { ...options, }); - await app.db.sync({}); + await app.db.clean({ drop: true }); app.plugin(PluginErrorHandler, { name: 'error-handler' }); app.plugin(Plugin, { name: 'collection-manager' }); app.plugin(PluginUiSchema, { name: 'ui-schema-storage' });