Skip to content

docs: document __tests__ directory test discovery convention#3385

Merged
bartlomieju merged 2 commits into
mainfrom
document-tests-dir-convention
Jul 2, 2026
Merged

docs: document __tests__ directory test discovery convention#3385
bartlomieju merged 2 commits into
mainfrom
document-tests-dir-convention

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

Since Deno 1.45 (denoland/deno#24443), deno test treats every script file
inside a __tests__ directory as a test file, in addition to files matching
the {*_,*.,}test.{ts, tsx, mts, js, mjs, jsx} glob. This convention was
never mentioned on the testing page, which has caused confusion when
non-test files placed in such a directory get collected and type-checked
(denoland/deno#24594). This documents it next to the existing glob
description.

@bartlomieju
bartlomieju merged commit 58e8c37 into main Jul 2, 2026
2 of 3 checks passed
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