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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JEST_WORKER_ID to runner environment #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silverwind
Copy link

@silverwind silverwind commented Sep 27, 2022

This environment variable is often used to detect whether app code runs inside Jest, it's good to have it for compatibilty (and to allow me to skip having to deal with module mocks).

Edit: I just found out about NODE_ENV=test which already works with this runner, so I'll be using that. You decide whether you want this 馃槈.

This environment variable is often used to detect whether app code runs
inside Jest, it's good to have it for compatibilty (and to allow me to
skip having to deal with module mocks).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants