Skip to content

Commit

Permalink
redirect webpack test output to a temp dir
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Sep 2, 2020
1 parent 06a7f21 commit c1db2a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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,
Expand Down

0 comments on commit c1db2a6

Please sign in to comment.