Skip to content

Commit

Permalink
fix(parse): join from current directory value
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed authored Nov 1, 2021
1 parent 730e7be commit 43c81a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function parse(dir, pattern, opts = {}) {
if (ignores[i].test(name)) return;
}

let file = join(dir, str);
let file = join(d, str);
let stats = await toStat(file);
if (stats.isDirectory()) return collect(file, name);
else if (pattern.test(name)) suites.push({ name, file });
Expand Down

0 comments on commit 43c81a4

Please sign in to comment.