Skip to content

Commit 46432c4

Browse files
committed
add test for notCacheable in CachePlugin
1 parent 460e6b6 commit 46432c4

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
it("should emit a warning", function() {
2+
// nothing
3+
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = [
2+
[/CachePlugin - Cache cannot be used because of: for testing/]
3+
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
plugins: [
3+
function() {
4+
this.plugin("this-compilation", c => {
5+
c.notCacheable = "for testing";
6+
});
7+
}
8+
]
9+
};

0 commit comments

Comments
 (0)