Skip to content

Match test files in folders whose names start with a dot - #32

Merged
Huldoser merged 1 commit into
mainfrom
dot-folders
Oct 14, 2026
Merged

Huldoser merged 1 commit into
mainfrom
dot-folders

Conversation

@Huldoser

Copy link
Copy Markdown
Owner

What changed

Playwright and Vitest both find test files under folders whose names start with a dot, such as .storybook/ or .github/scripts/; the scan's glob left them out. In the comparison with Vitest on 40 open-source projects, Mermaid, n8n, Lobe Chat and Element Plus have tests there. Globs now match such names, and .git folders are left out like node_modules.

No change on the corpus, whose patterns don't reach dot folders.

Checklist

  • Tests cover the change, and npm run coverage reports 100%.
  • The docs describe the change: the guide or reference pages, the README, or the TSDoc of exported functions.
  • No docs change is needed.
  • A changeset describes the change for users (npm run changeset), or the change does not affect them.

Playwright and Vitest both find test files under folders such as .storybook/ or .github/scripts/, which the glob left out. .git folders are left out, like node_modules.
@Huldoser
Huldoser enabled auto-merge (squash) October 14, 2026 14:54
@Huldoser
Huldoser merged commit 3fcc933 into main Oct 14, 2026
27 checks passed
@Huldoser
Huldoser deleted the dot-folders branch October 14, 2026 14:57
@Huldoser Huldoser mentioned this pull request Oct 14, 2026
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant