Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this something jest supports natively? i'd be very surprised to discover that's the case; it's far more likely that the repo is correct than a 2 year old blog post is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. I was more concerned with the other line being correct because it tripped me up. Looking back at the history, though, I see that the syntax on that was changed a year ago to what it is currently. It says that
setupTestFrameworkScriptFile
was deprecated so that's why it was replaced withsetupFilesAfterEnv
but not why the path was changed to the array. I'll see if I can get it working using that after all.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's likely that jest's format has changed; can you confirm in jest's docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah actually I was trying to get this to work on a project that's using an older version of Jest, so I'm thinking that it should work as the docs state once we get that update. Will close out.