Files
orca/src/main/cli/windows-launcher-asset.test.ts
T
Neil ee82d66a35 fix(cli): preserve multiline arguments on Windows (#8374)
* fix(cli): preserve multiline Windows arguments

* test(cli): run Windows launcher regression in CI

* fix(cli): support Windows Framework C# compiler
2026-07-12 02:13:41 -07:00

15 lines
643 B
TypeScript

import { readFileSync } from 'node:fs'
import { join } from 'node:path'
import { describe, expect, it } from 'vitest'
describe('packaged Windows CLI launcher asset', () => {
it('keeps the batch compatibility shim behind the newline-safe native launcher', () => {
const launcherPath = join(process.cwd(), 'resources', 'win32', 'bin', 'orca.cmd')
const launcher = readFileSync(launcherPath, 'utf8')
expect(launcher).toContain('set "LAUNCHER=%SCRIPT_DIR%orca.exe"')
expect(launcher).toContain('orca.cmd cannot safely forward orchestration message bodies')
expect(launcher).not.toContain('"%ELECTRON%" "%CLI%" %*')
})
})