From b4c74b2f278280148e5633dceff06db7f56b4e4c Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Sat, 15 Jul 2017 13:36:31 +0200 Subject: [PATCH] allow watch cases to have errors per step --- test/WatchTestCases.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/WatchTestCases.test.js b/test/WatchTestCases.test.js index bc852b08770..ad98f6a0e1f 100644 --- a/test/WatchTestCases.test.js +++ b/test/WatchTestCases.test.js @@ -129,8 +129,8 @@ describe("WatchTestCases", () => { const jsonStats = stats.toJson({ errorDetails: true }); - if(checkArrayExpectation(testDirectory, jsonStats, "error", "Error", done)) return; - if(checkArrayExpectation(testDirectory, jsonStats, "warning", "Warning", done)) return; + if(checkArrayExpectation(path.join(testDirectory, run.name), jsonStats, "error", "Error", done)) return; + if(checkArrayExpectation(path.join(testDirectory, run.name), jsonStats, "warning", "Warning", done)) return; let exportedTests = 0; function _it(title, fn) {