You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a jest project with a preset fails to load that preset, the validation error shown should specify which project failed. Currently, no information is given as to which project failed.
Motivation
It will allow the user to quickly understand which project is the cause of the preset loading error.
Example
I have made a reproduction of the error here. When running pnpm test, the validation error Preset ./jest-preset.js not found is shown.
Both jest configs have the same preset defined, ./jest-preset.js. Clearly the relative path of the preset in scripts/jest.config.cjs is incorrect, however I would have no way of knowing this based on the error.
Pitch
To provide a better user experience when this error is encountered.
The text was updated successfully, but these errors were encountered:
askoufis
changed the title
[Feature]: Provide more information when a preset fails to load to aid debugging
[Feature]: Show which project failed when a preset fails to load
Jul 17, 2024
This issue 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.
🚀 Feature Proposal
When a jest project with a
preset
fails to load that preset, the validation error shown should specify which project failed. Currently, no information is given as to which project failed.Motivation
It will allow the user to quickly understand which project is the cause of the preset loading error.
Example
I have made a reproduction of the error here. When running
pnpm test
, the validation errorPreset ./jest-preset.js not found
is shown.Both jest configs have the same preset defined,
./jest-preset.js
. Clearly the relative path of thepreset
inscripts/jest.config.cjs
is incorrect, however I would have no way of knowing this based on the error.Pitch
To provide a better user experience when this error is encountered.
The text was updated successfully, but these errors were encountered: