Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit b27920f

Browse files
committed
Use memory-fs everywhere
1 parent 88eee91 commit b27920f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/integration.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ const webpack = require('webpack');
44
const FriendlyErrorsWebpackPlugin = require('../src/friendly-errors-plugin');
55
const MemoryFileSystem = require('memory-fs');
66

7-
const syncWebpack = deasync(webpack);
7+
const syncWebpack = deasync(function(config, fn) {
8+
const compiler = webpack(config);
9+
compiler.outputFileSystem = new MemoryFileSystem();
10+
compiler.run(fn);
11+
return compiler;
12+
});
813

914
// Applys plugin directly to compiler to support `MultiCompiler` tests.
1015
const syncWebpackWithPlugin = deasync(function(config, fn) {

0 commit comments

Comments
 (0)