diff --git a/packages/core/test/src/mockServer.ts b/packages/core/test/src/mockServer.ts index 034fdffce..5341ead20 100644 --- a/packages/core/test/src/mockServer.ts +++ b/packages/core/test/src/mockServer.ts @@ -57,6 +57,7 @@ interface Resource { export class MockServer extends Application { async loadAndInstall(options: any = {}) { await this.load({ method: 'install' }); + await this.install({ ...options, sync: { diff --git a/packages/plugins/collection-manager/src/__tests__/index.ts b/packages/plugins/collection-manager/src/__tests__/index.ts index 6e9dcf4c3..7888983ee 100644 --- a/packages/plugins/collection-manager/src/__tests__/index.ts +++ b/packages/plugins/collection-manager/src/__tests__/index.ts @@ -9,6 +9,7 @@ export async function createApp(options = {}) { ...options, }); + await app.db.sync({}); app.plugin(PluginErrorHandler, { name: 'error-handler' }); app.plugin(Plugin, { name: 'collection-manager' }); app.plugin(PluginUiSchema, { name: 'ui-schema-storage' }); diff --git a/packages/plugins/collection-manager/src/__tests__/inherits/inherited-collection.test.ts b/packages/plugins/collection-manager/src/__tests__/inherits/inherited-collection.test.ts index dc7f898bd..9f624564f 100644 --- a/packages/plugins/collection-manager/src/__tests__/inherits/inherited-collection.test.ts +++ b/packages/plugins/collection-manager/src/__tests__/inherits/inherited-collection.test.ts @@ -359,7 +359,6 @@ pgOnly()('Inherited Collection', () => { const studentCollection = await db.getCollection('students'); - console.log(studentCollection.fields); await studentCollection.repository.create({ values: { name: 'foo',