MemoryEnvironmentProvider

class

An in-memory environment provider for testing, browser playgrounds,
or any context where real process state should not be touched.

Methods

cwd(): string

Return the current working directory, used as the root for configuration-file resolution.

getEnv(key: string): string | undefined

Read an environment variable. Return `undefined` when the variable is not set.

setEnv(key: string, value: string): void

Write (or overwrite) an environment variable.