Skip to content

Commit 83b9686

Browse files
tests/tape.js: Skip "hidden" . files
Some editors (i.e. vi) may put temporary files into the tests directory. Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
1 parent 0a95402 commit 83b9686

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/tape.js

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ function buildTree(dir, data) {
1313
data = data || {};
1414
const subdirs = [];
1515
for (const file of fs.readdirSync(dir)) {
16+
if (file[0] === ".") {
17+
continue;
18+
}
1619
const filePath = path.join(dir, file);
1720
if (fs.lstatSync(filePath).isDirectory()) {
1821
subdirs.push(filePath);

0 commit comments

Comments
 (0)