openclaw - 💡(How to fix) Fix [Feature]: Move vitest config files into a vitest/ directory [2 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62348Fetched 2026-04-08 03:05:37
View on GitHub
Comments
2
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
commented ×2closed ×1labeled ×1

Consolidate ~10+ root-level vitest config files into a vitest/ subdirectory to reduce root clutter. IT LOOKS REALLY UGLY

Root Cause

Consolidate ~10+ root-level vitest config files into a vitest/ subdirectory to reduce root clutter. IT LOOKS REALLY UGLY

RAW_BUFFERClick to expand / collapse

Summary

Consolidate ~10+ root-level vitest config files into a vitest/ subdirectory to reduce root clutter. IT LOOKS REALLY UGLY

Problem to solve

The project root contains dozens of vitest.*.config.ts and related path files, making it hard to navigate and find important files like package.json, README.md, or tsconfig.json. The root ls output is dominated by test configs.

Proposed solution

Move all vitest..config.ts and vitest.-paths.mjs files into a vitest/ directory at the project root. Update all references in package.json scripts, CI workflows, and any other tooling to point to the new paths.

Alternatives considered

Using Vitest's workspace feature (vitest.workspace.ts) to replace individual configs — more powerful but higher risk and larger refactor. Colocating configs with their respective packages — better long-term but a much bigger change touching many packages.

Impact

Affects all contributors. Low severity (annoying, not blocking). Pain occurs every time someone browses the repo root. Consequence is reduced readability and a messy first impression of the codebase.

Evidence/examples

Running ls in the repo root returns 100+ entries, roughly half of which are vitest configs. Also it's UGLY!

Additional information

No response

extent analysis

TL;DR

Move vitest configuration files into a vitest/ subdirectory and update references in package.json and other tooling to point to the new paths.

Guidance

  • Create a vitest/ directory at the project root to consolidate configuration files.
  • Move all vitest.*.config.ts and vitest.*-paths.mjs files into the new vitest/ directory.
  • Update package.json scripts and CI workflows to reference the configuration files at their new locations.
  • Verify that all tests and tooling continue to function as expected after the move.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a reorganization of files.

Notes

This solution assumes that the project's build and test tools can handle the new location of the configuration files. If issues arise, it may be necessary to update additional configuration or scripts.

Recommendation

Apply workaround: Move configuration files to a subdirectory, as this is a low-risk change that addresses the problem of clutter in the project root.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING