feat(offload): make setup script dynamic based on remote state

This commit is contained in:
mkorwel
2026-03-13 20:08:30 -07:00
parent 12824cb21c
commit 45902f5e8a
3 changed files with 66 additions and 23 deletions
@@ -33,6 +33,7 @@ describe('Offload Tooling Matrix', () => {
vi.spyOn(process, 'chdir').mockImplementation(() => {});
vi.mocked(spawnSync).mockImplementation((cmd: any, args: any) => {
if (cmd === 'ssh' && args?.[1]?.includes('command -v')) return { status: 0 } as any;
return { status: 0, stdout: Buffer.from('test-meta\n'), stderr: Buffer.from('') } as any;
});