magento-research / peregrine

(Defunct) Moved to https://github.com/magento-research/pwa-studio
Open Software License 3.0
29 stars 1 forks source link

Stub console.log out in Peregrine root test to keep stdout clean #11

Closed DrewML closed 6 years ago

DrewML commented 6 years ago

Running tests on master: image

image

DrewML commented 6 years ago

Request: make this a globalSetup and globalTeardown configuration which can be turned on and off based on debug env.

@zetlen done. globalSetup and globalTeardown scripts don't have access to the same env as tests are executed (they're run using vm.runInContext), so console methods can't be stubbed out that way. Found a silent config that nets the same result, though:

image