@google-github-actions/actions-utils
@google-github-actions/actions-utils / env / stubEnv
stubEnv(
input,target): () =>void
Defined in: env.ts:35
stubEnv accepts an input dictionary and sets the provided environment variables in the current process environment. Values set to "undefined" are deleted from the environment.
The function is only safe for concurrent use if the target is safe for concurrent use. The function itself provides no locking.
Map of string value pairs to set in the new environment.
ProcessEnv = process.env
Target map to set and restore (defaults to process.env).
Function that restores the environment.
():
void
void