test(launcher): gate Linux AppImage env test with early return

Bun's node:test shim ignores the skip option, so the Linux-only test ran
and failed on macOS.
This commit is contained in:
sudacode committed 2026-10-26 23:27:24 -07:00
1 parent 6219a81144
commit a681bbaf25
1 file changed
+2 -1
+2 -1
View File
@@ -174,8 +174,9 @@ test('runAppCommandCaptureOutput strips ELECTRON_RUN_AS_NODE from app child env'
test( test(
'runAppCommandCaptureOutput transports Linux AppImage args through environment', 'runAppCommandCaptureOutput transports Linux AppImage args through environment',
{ skip: process.platform !== 'linux' },
async () => { async () => {
// Bun's node:test shim ignores the `skip` option, so gate the platform here.
if (process.platform !== 'linux') return;
await withTempCase(({ dir }) => { await withTempCase(({ dir }) => {
const appPath = writeFakeApp( const appPath = writeFakeApp(
dir, dir,