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

feat: Show rootDir in error message when a preset fails to load #15194

Merged
merged 2 commits into from
Jul 21, 2024

Conversation

askoufis
Copy link
Contributor

Summary

Resolves #15193.

This change provides context to the user about where the preset is being resolved from. Happy to iterate on the error message wording if necessary.

We won't always have the project name/path in options, but I think rootDir will always be present in options, so I chose to add that to the error message.

Test plan

Updated snapshots with yarn jest -u

Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ef24297
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/6697666c5a84eb000835a5fa
😎 Deploy Preview https://deploy-preview-15194--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB SimenB merged commit 9aa9060 into jestjs:main Jul 21, 2024
73 checks passed
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Show which project failed when a preset fails to load
2 participants