-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
🚀 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 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.