Ignore directories in the test runner

master
Paul Loyd 2017-11-03 14:34:26 +03:00
parent 6b9ecb6d1f
commit 2b689b76f5
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ for (const name of list) {
continue;
}
if (fs.lstatSync(name).isDirectory()) {
continue;
}
console.log(`${name}...`);
const code = fs.readFileSync(name, 'utf8');