Skip to content

Commit c1db2a6

Browse files
committed
redirect webpack test output to a temp dir
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
1 parent 06a7f21 commit c1db2a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/browser-specific/fixtures/webpack/webpack.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
'use strict';
22

33
const FailOnErrorsPlugin = require('fail-on-errors-webpack-plugin');
4+
const {tmpdir} = require('os');
5+
const {join} = require('path');
6+
7+
const outputPath = join(tmpdir(), 'mocha-test-webpack');
8+
9+
console.error('output dir: %s', outputPath);
410

511
module.exports = {
612
entry: require.resolve('./webpack.fixture.mjs'),
13+
output: {
14+
path: outputPath
15+
},
716
plugins: [
817
new FailOnErrorsPlugin({
918
failOnErrors: true,

0 commit comments

Comments
 (0)