diff --git a/test/Compiler-caching.test.js b/test/Compiler-caching.test.js index 10aefabb4..9c3df9488 100644 --- a/test/Compiler-caching.test.js +++ b/test/Compiler-caching.test.js @@ -40,6 +40,9 @@ describe("Compiler (caching)", () => { logs.writeFile.push(name, content); files[name] = content.toString("utf-8"); callback(); + }, + stat(path, callback) { + callback(new Error("ENOENT")); } }; c.hooks.compilation.tap( diff --git a/test/Compiler.test.js b/test/Compiler.test.js index 73b8b9c4e..28e848bab 100644 --- a/test/Compiler.test.js +++ b/test/Compiler.test.js @@ -39,6 +39,9 @@ describe("Compiler", () => { logs.writeFile.push(name, content); files[name] = content.toString("utf-8"); callback(); + }, + stat(path, callback) { + callback(new Error("ENOENT")); } }; c.hooks.compilation.tap(