-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jest-config): throw correct error for missing preset modules
When loading a preset module that cannot be resolved (e.g. is not npm installed), the following error is shown to users: ● Validation Error: Preset foobar is invalid: The "id" argument must be of type string. Received null Instead, the following error should be shown ● Validation Error: Preset foobar not found. This PR changes the error message by handling when Resolver.findNodeModule returns null, indicating that the module cannot be successfully imported.
- Loading branch information
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters