docs: remove deprecated setupTestFrameworkScriptFile
option and setupFilesAfterEnv
instead
#11910
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.
Summary
setupTestFrameworkScriptFile
option is deprecated in favor ofsetupFilesAfterEnv
sincev24
: https://github.com/facebook/jest/releases/tag/v24.0.0It was still present in the CLI API docs. Time to say good bye?
In the CLI API docs I simply replaced it with
setupFilesAfterEnv
which was not documented before.Also:
setupTestFrameworkScriptFile
in Configuration docs. Onlyv26
andv27
. Did not touch earlier ones on purpose. The note is good to have inv24
docs (and perhaps25
?).setupTestFrameworkScriptFile
->setupFilesAfterEnv
elsewhere.@deprecated
in typings.Test plan
The code was not touched. Just in case, I tryout out if the CLI option works as documented. It does.