Skip to content

Commit 86188b7

Browse files
author
Perki
committed
Updated test generation scripts
1 parent 0f67831 commit 86188b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/test-results/generate

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ fs.readdirSync(paths.components).forEach(function (name) {
4343
shell: true // required to use `npx`
4444
});
4545

46+
if (!fs.existsSync(componentOutputPath)) {
47+
console.error('Cannot find file ' + componentOutputPath + ' for component ' + name);
48+
return;
49+
}
4650
const componentResults = JSON.parse(fs.readFileSync(componentOutputPath));
4751
componentResults.componentName = name;
4852
testResults.push(componentResults);

0 commit comments

Comments
 (0)