فهرست منبع

test(core): Add logging to collection e2e to better diagnose failure

Michael Bromley 4 سال پیش
والد
کامیت
244da71866
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      packages/core/e2e/collection.e2e-spec.ts

+ 2 - 0
packages/core/e2e/collection.e2e-spec.ts

@@ -2,6 +2,7 @@
 import { ROOT_COLLECTION_NAME } from '@vendure/common/lib/shared-constants';
 import {
     DefaultJobQueuePlugin,
+    DefaultLogger,
     facetValueCollectionFilter,
     JobQueueService,
     variantNameCollectionFilter,
@@ -57,6 +58,7 @@ import { sortById } from './utils/test-order-utils';
 describe('Collection resolver', () => {
     const { server, adminClient, shopClient } = createTestEnvironment({
         ...testConfig,
+        logger: new DefaultLogger(),
         plugins: [DefaultJobQueuePlugin],
     });