Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the extends Config #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

manuth
Copy link

@manuth manuth commented Apr 24, 2023

Currently, mochas import("mocha/lib/cli/options").loadOptions function does not respect the extends setting.

Rather, config inheritance is handled separately in mocha/lib/cli/cli:
https://github.com/mochajs/mocha/blob/37deed262d4bc0788d32c66636495d10038ad398/lib/cli/cli.js#L49-L79

Notice the import("yargs").config() call in the linked snippet.

To address this issue, changes to loadConfig have been made to replicate mochas behavior:
https://github.com/manuth/vscode-mocha-test-adapter/blob/aa7ec47884ffb8c82885ee7c1942bbecd6596056/src/worker/loadConfig.ts#L4-L12

Changes made in this PR will fix #223

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.

extends in config file is not supported
1 participant