MCPcopy
hub / github.com/Fission-AI/OpenSpec / machineEnv

Function machineEnv

test/cli-e2e/store-lifecycle.test.ts:33–47  ·  view source on GitHub ↗
(home: string, gitConfigGlobal: string)

Source from the content-addressed store, hash-verified

31let projectSnapshot: Map<string, string>;
32
33function machineEnv(home: string, gitConfigGlobal: string): NodeJS.ProcessEnv {
34 return {
35 XDG_CONFIG_HOME: path.join(home, 'config'),
36 XDG_DATA_HOME: path.join(home, 'data'),
37 XDG_STATE_HOME: path.join(home, 'state'),
38 XDG_CACHE_HOME: path.join(home, 'cache'),
39 OPENSPEC_TELEMETRY: '0',
40 GIT_CONFIG_GLOBAL: gitConfigGlobal,
41 GIT_CONFIG_SYSTEM: emptyGitConfig,
42 GIT_AUTHOR_NAME: 'Journey Tester',
43 GIT_AUTHOR_EMAIL: 'journey@example.com',
44 GIT_COMMITTER_NAME: 'Journey Tester',
45 GIT_COMMITTER_EMAIL: 'journey@example.com',
46 };
47}
48
49// Same canonicalization the product uses (expands Windows 8.3 short names).
50function canonical(target: string): string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected