Skip to content

Commit

Permalink
fix: filter tests (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu authored Jul 17, 2022
1 parent 2e9f0fe commit 3352a70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.pnp.loader.mjs
.yarn/unplugged
.yarn/install-state.gz

node_modules
5 changes: 3 additions & 2 deletions src/worker-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ async function runTestBlock(

if (
mode === "skip" ||
(hasFocusedTests && type === "test" && mode !== "only") ||
shouldSkip(testNamePatternRE, getFullName(nextAncestors))
(type === "test" &&
((hasFocusedTests && mode !== "only") ||
shouldSkip(testNamePatternRE, getFullName(nextAncestors))))
) {
stats.pending++;
results.push({ ancestors, title: name, errors: [], skipped: true });
Expand Down

0 comments on commit 3352a70

Please sign in to comment.