File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const path = require("path");
55const fs = require ( "fs" ) ;
66const vm = require ( "vm" ) ;
77const mkdirp = require ( "mkdirp" ) ;
8+ const rimraf = require ( "rimraf" ) ;
89const checkArrayExpectation = require ( "./checkArrayExpectation" ) ;
910
1011const Stats = require ( "../lib/Stats" ) ;
@@ -47,7 +48,6 @@ describe("ConfigTestCases", () => {
4748 category . name ,
4849 testName
4950 ) ;
50- mkdirp . sync ( outputDirectory ) ;
5151 const exportedTests = [ ] ;
5252 const exportedBeforeEach = [ ] ;
5353 const exportedAfterEach = [ ] ;
@@ -59,6 +59,8 @@ describe("ConfigTestCases", () => {
5959 if ( err ) return reject ( err ) ;
6060 resolve ( ) ;
6161 } ;
62+ rimraf . sync ( outputDirectory ) ;
63+ mkdirp . sync ( outputDirectory ) ;
6264 const options = prepareOptions (
6365 require ( path . join ( testDirectory , "webpack.config.js" ) ) ,
6466 { testPath : outputDirectory }
You can’t perform that action at this time.
0 commit comments