File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -194,12 +194,20 @@ const describeCases = config => {
194
194
FileCachePlugin . purgeMemoryCache ( ) ;
195
195
} ) ;
196
196
if ( config . cache ) {
197
- it ( testName + " should pre-compile" , done => {
197
+ it ( `${ testName } should pre-compile to fill disk cache` , done => {
198
+ FileCachePlugin . purgeMemoryCache ( ) ;
199
+ const compiler = webpack ( options , err => {
200
+ if ( err ) return done ( err ) ;
201
+ compiler . close ( ( ) => {
202
+ done ( ) ;
203
+ } ) ;
204
+ } ) ;
205
+ } ) ;
206
+ it ( `${ testName } should pre-compile to fill memory cache` , done => {
198
207
FileCachePlugin . purgeMemoryCache ( ) ;
199
208
const compiler = webpack ( options , err => {
200
209
if ( err ) return done ( err ) ;
201
210
compiler . close ( ( ) => {
202
- FileCachePlugin . purgeMemoryCache ( ) ;
203
211
done ( ) ;
204
212
} ) ;
205
213
} ) ;
You can’t perform that action at this time.
0 commit comments