Environment variables
Runtime marker: ENDFORM=true
Section titled “Runtime marker: ENDFORM=true”Endform sets ENDFORM=true for Node processes it starts as part of your test execution flow.
You can use this to detect Endform runtime context in your own code:
const isEndform = process.env.ENDFORM === "true";User-defined environment variables
Section titled “User-defined environment variables”Endform transfers selected environment variables to remote runners. For details, see environmentVariables in endform.jsonc.
At a high level:
E2E_*variables are transferred automatically.- Variables referenced from tests via
process.envare transferred automatically. - You can explicitly include additional variables with
environmentVariables.
ENDFORM_EXTRA_HTTP_HEADERS
Section titled “ENDFORM_EXTRA_HTTP_HEADERS”You can set ENDFORM_EXTRA_HTTP_HEADERS to override the Playwright extraHttpHeaders option.
See extraHttpHeaders in endform.jsonc.