Skip to content

Commit 044ad37

Browse files
committed
test memory cache too
1 parent ca69e94 commit 044ad37

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/TestCases.template.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,20 @@ const describeCases = config => {
194194
FileCachePlugin.purgeMemoryCache();
195195
});
196196
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 => {
198207
FileCachePlugin.purgeMemoryCache();
199208
const compiler = webpack(options, err => {
200209
if (err) return done(err);
201210
compiler.close(() => {
202-
FileCachePlugin.purgeMemoryCache();
203211
done();
204212
});
205213
});

0 commit comments

Comments
 (0)