From 5cbb5bdc52c57e91a24653c3e10b084d5f477607 Mon Sep 17 00:00:00 2001 From: pimlie Date: Sat, 9 Mar 2019 18:00:27 +0100 Subject: [PATCH] refactor: use forEach not map --- test/utils/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/utils/build.js b/test/utils/build.js index 8af3956..85967ec 100644 --- a/test/utils/build.js +++ b/test/utils/build.js @@ -41,8 +41,8 @@ export async function buildFixture(fixture, config = {}) { const webpackStats = await webpackRun(webpackConfig) // for test debugging - webpackStats.errors.map(e => console.error(e)) // eslint-disable-line no-console - webpackStats.warnings.map(e => console.warn(e)) // eslint-disable-line no-console + webpackStats.errors.forEach(e => console.error(e)) // eslint-disable-line no-console + webpackStats.warnings.forEach(e => console.warn(e)) // eslint-disable-line no-console const vueApp = await import(path.resolve(fixturePath, 'server')).then(m => m.default || m)