去掉渠道环境变量用例里重复的 stageRuntime
Project CI / AI game creator shell Rust crates (push) Successful in 2m44s
Project CI / AI game creator shell Rust smoke (push) Successful in 3m37s
Project CI / AI game creator shell Rust lane 1/2 (push) Failing after 6m56s
Project CI / AI game creator shell Rust lane 2/2 (push) Failing after 7m58s
Project CI / Backend tests (push) Successful in 6m33s
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / AI game creator shell web tests (push) Has been cancelled

- 两次独立修复(#444 与本仓库 55cb04765)在同一处各加了一个 stageRuntime,合并后成为重复对象键,Web-Build 的 ESLint(no-dupe-keys) 失败
- 保留一条带说明的 stageRuntime stub,用例语义不变
This commit is contained in:
2026-09-21 12:49:34 +08:00
parent e18067e028
commit 886bdc06ed
@@ -218,9 +218,6 @@ test('packaged renderer receives the same channel as the updater manifest', () =
spawnOptions = options;
return { status: 0 };
},
// 该用例只关心渠道环境变量;Node 运行时 staging 与宿主平台绑定,
// 真实 staging 会让同一用例在 macOS/Linux 上对 windows target 失败。
stageRuntime: () => {},
});
assert.equal(spawnOptions?.env?.VITE_AGC_PLATFORM_CHANNEL, 'release');
});