1 parent 460e6b6 commit 46432c4Copy full SHA for 46432c4
3 files changed
test/watchCases/cache/warning-on-not-cacheable/0/index.js
@@ -0,0 +1,3 @@
1
+it("should emit a warning", function() {
2
+ // nothing
3
+});
test/watchCases/cache/warning-on-not-cacheable/0/warnings.js
+module.exports = [
+ [/CachePlugin - Cache cannot be used because of: for testing/]
+];
test/watchCases/cache/warning-on-not-cacheable/webpack.config.js
@@ -0,0 +1,9 @@
+module.exports = {
+ plugins: [
+ function() {
4
+ this.plugin("this-compilation", c => {
5
+ c.notCacheable = "for testing";
6
+ });
7
+ }
8
+ ]
9
+};
0 commit comments