Skip to content

[Feature]: Show which project failed when a preset fails to load #15193

@askoufis

Description

@askoufis

🚀 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions