Repository navigation
test: run every package's tests with one vitest glob - #281
Merged
lolaaimar merged 1 commit intoNov 25, 2026
Merged
Conversation
nicolasLuduena
force-pushed
the
test/vitest-workspace-glob
branch
from
November 25, 2026 02:19
cbd3652 to
adf1643
Compare
nicolasLuduena
changed the base branch from
main
to
chore/217-unused-sim-members
November 25, 2026 02:19
Contributor
|
lgtm |
lolaaimar
approved these changes
Nov 25, 2026
lolaaimar
force-pushed
the
test/vitest-workspace-glob
branch
from
November 25, 2026 19:49
adf1643 to
842bc0e
Compare
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
lolaaimar
force-pushed
the
test/vitest-workspace-glob
branch
from
November 25, 2026 20:47
842bc0e to
1bfa803
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #282 (stack: #291 → #292 → #293 → #294 → #285 → #283 → #282 → #281); it shares no files with them.
The root
vitest.config.tslisted oneincludeglob per package. CI runsnpx vitest runfrom the root, so a package missing from the list has its tests skipped with no error.packages/attestoris missing today. This PR replaces the list with one glob:Every test file in the repo is under its package's
test/directory, so a new package is picked up without editing the config.configDefaults.excludestill dropsnode_modulesanddist. No doc tells contributors to edit the list, so no doc changes.Evidence
npx vitest list --filesOnlylists 33 files, and a test inpackages/attestor/test/is not among them.After: the same 33 files, and the
packages/attestor/test/test is listed. I added that test only for this check and deleted it.On the full stack,
npm run typesandnpm run checkpass, and the full suite passes: 31 files passed, 2 skipped; 776 tests passed, 4 skipped (the opt-in live checks).No verification skill in this repo.
Merge Danger
Door: two-way
Blast Radius: CI
The same tests run today. Any
*.test.tsfile that lands in a package'stest/directory runs from now on, including in a package nobody remembered to list.