diff --git a/src/Runner.js b/src/Runner.js index 41f43d30..1930d499 100644 --- a/src/Runner.js +++ b/src/Runner.js @@ -67,8 +67,10 @@ function report({file, msg}) { function concatAll(arrays) { const result = []; for (const array of arrays) { - for (const element of array) { - result.push(element); + if (array) { + for (const element of array) { + result.push(element); + } } } return result;