Document the difference between Jest setup files #37
Labels
area: documentation
Improvements or additions to docs 📝
good first issue
Good for newcomers, please hop on! 🙌
status: accepting prs
Please, send a pull request to resolve this! 🙏
Jest has two ways to run setup files:
setupFiles
: run before the globaljest
variable is createdsetupFilesAfterEnv
: run after ☝️It's confusing that you must use
setupFilesAfterEnv
and notsetupFiles
. This should be documented in Jest.md.The text was updated successfully, but these errors were encountered: