Skip to content
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

Document the difference between Jest setup files #37

Open
JoshuaKGoldberg opened this issue Mar 6, 2019 · 0 comments
Open

Document the difference between Jest setup files #37

JoshuaKGoldberg opened this issue Mar 6, 2019 · 0 comments
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! 🙏

Comments

@JoshuaKGoldberg
Copy link
Owner

JoshuaKGoldberg commented Mar 6, 2019

Jest has two ways to run setup files:

  • setupFiles: run before the global jest variable is created
  • setupFilesAfterEnv: run after ☝️

It's confusing that you must use setupFilesAfterEnv and not setupFiles. This should be documented in Jest.md.

@JoshuaKGoldberg JoshuaKGoldberg added good first issue Good for newcomers, please hop on! 🙌 documentation labels Mar 6, 2019
@JoshuaKGoldberg JoshuaKGoldberg added status: accepting prs Please, send a pull request to resolve this! 🙏 area: documentation Improvements or additions to docs 📝 labels Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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! 🙏
Projects
None yet
Development

No branches or pull requests

1 participant