From 10faa96bcf5256fc71e508eed7fc260a6cd40d47 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 27 Sep 2018 15:09:49 +0100 Subject: [PATCH] Exclude non-testable .js files from the unit tests --- test/unit/_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/_spec.js b/test/unit/_spec.js index ef09109c2..d099836f3 100644 --- a/test/unit/_spec.js +++ b/test/unit/_spec.js @@ -41,7 +41,7 @@ var walkDirectory = function(dir) { list.forEach(function(file) { var filePath = path.join(dir,file); - if (!/@node-red\/(editor-client|nodes)/.test(filePath)) { + if (!/@node-red\/(editor-client|nodes)/.test(filePath) && !/node-red\/settings\.js/.test(filePath) && !/\/docs\//.test(filePath)) { promises.push(fs.stat(filePath).then(function(stat){ if (stat.isDirectory()) { return walkDirectory(filePath).then(function(results) {