1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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