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:
parent
42d31b9ee6
commit
10faa96bcf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user