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
thymikee
changed the title
TypeError when transform returns undefined
Provide better error message when transform returns non-string value
Jun 11, 2017
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.
Do you want to request a feature or report a bug?
Bug/Better error message
What is the current behavior?
Returning
undefined
from a transform module causes jest to report the following error:Repl: https://repl.it/Ie2I/5
What is the expected behavior?
It would be nice to have a better error message here, or perhaps treat undefined as the empty string.
The text was updated successfully, but these errors were encountered: