From c1db2a6b6c056753feae8ddb9d7343f99fc94245 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Wed, 2 Sep 2020 13:25:30 -0700 Subject: [PATCH] redirect webpack test output to a temp dir Signed-off-by: Christopher Hiller --- test/browser-specific/fixtures/webpack/webpack.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/browser-specific/fixtures/webpack/webpack.config.js b/test/browser-specific/fixtures/webpack/webpack.config.js index f43a80d010..53d4769c8e 100644 --- a/test/browser-specific/fixtures/webpack/webpack.config.js +++ b/test/browser-specific/fixtures/webpack/webpack.config.js @@ -1,9 +1,18 @@ 'use strict'; const FailOnErrorsPlugin = require('fail-on-errors-webpack-plugin'); +const {tmpdir} = require('os'); +const {join} = require('path'); + +const outputPath = join(tmpdir(), 'mocha-test-webpack'); + +console.error('output dir: %s', outputPath); module.exports = { entry: require.resolve('./webpack.fixture.mjs'), + output: { + path: outputPath + }, plugins: [ new FailOnErrorsPlugin({ failOnErrors: true,