️ Repo: add `findUpSyncAny` scenario tests
Author: mark-wiemerCreated Sep 16, 2026Updated Sep 16, 2026
Labelsarea: repository toolingstatus: in triage
Tooling Suggestion Checklist
- I have tried restarting my IDE and the issue persists.
- I have pulled the latest
mainbranch of the repository. - I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- I have searched for related issues and issues with the
faqlabel, but none matched my issue. - I want to provide a PR to resolve this
Overview
PR #6342 changed deps from find-up to find-up-simple and modified existing tests. This revealed a lack of test coverage for the following scenarios:
- Should call
findUpSyncin with all config filename args in order - Should not make extra calls once an item is found
- Should return undefined if no item is found
This guarantees that Mocha behavior is the same as when using find-up. Before, we were able to trust that find-up worked, but now we have (simple) custom code to wrap that, and we should test our custom code.
Additional Info
No response
Source: mochajs/mocha