MCPcopy Index your code
hub / github.com/coder/code-server / setValue

Function setValue

test/utils/helpers.ts:57–57  ·  view source on GitHub ↗
(nextValue: string | undefined)

Source from the content-addressed store, hash-verified

55export function useEnv(key: string): [(nextValue: string | undefined) => string | undefined, () => void] {
56 const initialValue = process.env[key]
57 const setValue = (nextValue: string | undefined) => (process.env[key] = nextValue)
58 // Node automatically converts undefined to string 'undefined'
59 // when assigning an environment variable.
60 // which is why we need to delete it if it's supposed to be undefined

Callers 2

helpers.test.tsFile · 0.85
cli.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected