diff --git a/src/cli/test_command.zig b/src/cli/test_command.zig index d85c74d3f8..77b2493d5e 100644 --- a/src/cli/test_command.zig +++ b/src/cli/test_command.zig @@ -259,7 +259,7 @@ const Scanner = struct { this.has_iterated = true; switch (entry.kind(&this.fs.fs)) { .dir => { - if (strings.eqlComptime(name, "node_modules") or strings.eqlComptime(name, ".git")) { + if ((name.len > 0 and name[0] == '.') or strings.eqlComptime(name, "node_modules")) { return; }