File: EnvironmentVariables.md

package info (click to toggle)
node-jest 29.6.2~ds1%2B~cs73.45.28-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,048 kB
  • sloc: javascript: 21,649; makefile: 47; sh: 21
file content (14 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
id: environment-variables
title: Environment Variables
---

Jest sets the following environment variables:

### `NODE_ENV`

Set to `'test'` if it's not already set to something else.

### `JEST_WORKER_ID`

Each worker process is assigned a unique id (index-based that starts with `1`). This is set to `1` for all tests when [`runInBand`](CLI.md#--runinband) is set to true.