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

Default jest config file resolution not supported #354

Open
lisadean opened this issue Feb 2, 2024 · 1 comment
Open

Default jest config file resolution not supported #354

lisadean opened this issue Feb 2, 2024 · 1 comment

Comments

@lisadean
Copy link

lisadean commented Feb 2, 2024

Jest supports a customized configuration through several methods (https://jestjs.io/docs/configuration) and this config resolution is ignored in favor of an override through the extension's settings, or a fallback to just walking up the tree until a config file is found. This means that configuration (such as globalSetup) done in a root config file is ignored when you also have Jest project config files present.

public getJestConfigPath(targetPath: string): string {

Instead, the extension should only specify a config file if there is a jestrunner.configPath value defined.

This is similar to this issue: #220

@firsttris
Copy link
Owner

Thanks for your message, you are absolutly correct, we need to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants