Exclude non-testable .js files from the unit tests

This commit is contained in:
Nick O'Leary 2018-09-27 15:09:49 +01:00
parent 42d31b9ee6
commit 10faa96bcf
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 1 deletions

View File

@ -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) {