MCPcopy Create free account
hub / github.com/Schniz/fnm / script

Function script

e2e/shellcode/script.ts:170–174  ·  view source on GitHub ↗
(shell: Pick<Shell, "dieOnErrors">)

Source from the content-addressed store, hash-verified

168}
169
170export function script(shell: Pick<Shell, "dieOnErrors">): Script {
171 const fnmDir = path.join(testTmpDir(), "fnm")
172 rmSync(join(fnmDir, "aliases"), { recursive: true, force: true })
173 return new Script({ fnmDir }, shell.dieOnErrors ? [shell.dieOnErrors()] : [])
174}
175
176function removeAllFnmEnvVars(obj: NodeJS.ProcessEnv): NodeJS.ProcessEnv {
177 const result: NodeJS.ProcessEnv = {}

Callers 15

basic.test.tsFile · 0.85
nvmrc-lts.test.tsFile · 0.85
latest.test.tsFile · 0.85
aliases.test.tsFile · 0.85
log-level.test.tsFile · 0.85
uninstall.test.tsFile · 0.85
exec.test.tsFile · 0.85
env.test.tsFile · 0.85

Calls 1

testTmpDirFunction · 0.85

Tested by

no test coverage detected