From 679f3fbb2c0bfb3d45db15eb7f47cbf45853c704 Mon Sep 17 00:00:00 2001 From: winewill Date: Wed, 4 Nov 2026 14:18:53 +0800 Subject: [PATCH] test(desktop): expect archive settings failure before runner validation --- apps/desktop/tests/desktop-publication-failure.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/tests/desktop-publication-failure.spec.ts b/apps/desktop/tests/desktop-publication-failure.spec.ts index 80daeab539..cf92241607 100644 --- a/apps/desktop/tests/desktop-publication-failure.spec.ts +++ b/apps/desktop/tests/desktop-publication-failure.spec.ts @@ -48,11 +48,11 @@ it('omits malformed provider receipt fields and never copies raw errors into COS it('prints structured archival failure through the real CLI', () => { const result = spawnSync(process.execPath, ['--import', 'tsx/esm', fileURLToPath(new URL('../scripts/archive-desktop-ci.ts', import.meta.url))], { - encoding: 'utf8', timeout: 30_000, env: { ...process.env, RUNNER_NAME: '', DESKTOP_PACKAGE_RUNNER: '' }, + encoding: 'utf8', timeout: 30_000, env: { ...process.env, DESKTOP_ARCHIVE_NAME: '', GITHUB_OUTPUT: '', RUNNER_NAME: '', DESKTOP_PACKAGE_RUNNER: '' }, }) expect(result.error).toBeUndefined() expect(result.signal).toBeNull() expect(result.status).toBe(1) expect(JSON.parse(result.stderr)).toEqual({ phase: 'artifact archival', code: 'validation', - message: 'desktop archival: wrong original machine' }) + message: 'desktop archival: invalid ZIP output settings' }) })