Explorar el Código

test(core): Fix console error in lifecycle e2e test

Michael Bromley hace 5 años
padre
commit
3471829e2c
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      packages/core/e2e/lifecycle.e2e-spec.ts

+ 8 - 2
packages/core/e2e/lifecycle.e2e-spec.ts

@@ -1,4 +1,10 @@
-import { AutoIncrementIdStrategy, Injector, ProductService, ShippingEligibilityChecker } from '@vendure/core';
+import {
+    AutoIncrementIdStrategy,
+    defaultShippingEligibilityChecker,
+    Injector,
+    ProductService,
+    ShippingEligibilityChecker,
+} from '@vendure/core';
 import { createTestEnvironment } from '@vendure/testing';
 import path from 'path';
 
@@ -48,7 +54,7 @@ describe('lifecycle hooks for configurable objects', () => {
         ...testConfig,
         entityIdStrategy: new TestIdStrategy(),
         shippingOptions: {
-            shippingEligibilityCheckers: [testShippingEligChecker],
+            shippingEligibilityCheckers: [defaultShippingEligibilityChecker, testShippingEligChecker],
         },
     });