From 019e35bf265412307c0a7f8e7f2b48642d5624c0 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 4 Nov 2019 11:40:36 +0100 Subject: [PATCH] fix test case --- test/Compiler-caching.test.js | 3 +++ test/Compiler.test.js | 3 +++ 2 files changed, 6 insertions(+) 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(