-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config:migrate results in error message #756
config:migrate results in error message #756
Comments
@Vinnl thanks for reporting! The ts-jest uses To fix this, you need to set Update: This should also be mentioned in the doc when using preset. |
Ehm wow, that was ridiculously fast - I was still working on the formatting of the issue. But thanks, setting |
Was updating while I got your answer hehe! |
Issue :
When I ran with an updated ts-jest, I received a notification that my configuration was outdated, and that I could run
ts-jest config:migrate
to migrate it. I did, but unfortunately, the migration resulted in Jest mentioning the following configuration error:Expected behavior :
Tests executing successfully, or at least the configuration still being valid.
Debug log:
Was empty.
Minimal repo :
My original configuration.
Configuration after migration
The diff:
As you can see, I don't use the
testMatch
option anyway - I suppose the preset has it somewhere? If so, the migration tool should probably do something with the existing option? Unfortunately, I couldn't transformtestRegex
totestMatch
myself, because Jest could no longer find my tests, so I'm not sure what the solution should be.The text was updated successfully, but these errors were encountered: