()
| 74 | fs.chmodSync(p, 0o755); |
| 75 | } |
| 76 | function env(): NodeJS.ProcessEnv { |
| 77 | // Keep the real PATH so /usr/bin/env + bash resolve; prepend the shim dir. |
| 78 | return { PATH: `${binDir}:${process.env.PATH}`, HOME: homeDir }; |
| 79 | } |
| 80 | |
| 81 | beforeEach(() => { |
| 82 | binDir = fs.mkdtempSync(path.join(os.tmpdir(), "gbrain-shim-")); |
no outgoing calls
no test coverage detected