From b036b16a883e3793f47ade6330bf4e6dbdddd14b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 1 Jan 2018 22:54:22 -0500 Subject: [PATCH] propagate console events inside nightmare --- test/custom-elements/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/custom-elements/index.js b/test/custom-elements/index.js index 917261ddec..a3287b5d10 100644 --- a/test/custom-elements/index.js +++ b/test/custom-elements/index.js @@ -19,6 +19,10 @@ describe('custom-elements', function() { const nightmare = new Nightmare({ show: false }); + nightmare.on('console', (type, ...args) => { + console[type](...args); + }); + let svelte; let server; let bundle;