From 35e15f4493937ae5f99986aae533d43e738c4f54 Mon Sep 17 00:00:00 2001 From: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> Date: Tue, 1 Sep 2026 16:54:14 +0800 Subject: [PATCH] test(cli): keep upgrade assertions registry-scoped Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> --- cli/test/integration/upgrade-command.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/test/integration/upgrade-command.test.ts b/cli/test/integration/upgrade-command.test.ts index f1bc146b..d0fa9671 100644 --- a/cli/test/integration/upgrade-command.test.ts +++ b/cli/test/integration/upgrade-command.test.ts @@ -291,7 +291,10 @@ describe('upgrade command', () => { expect(inventory.items[0]).toMatchObject({ version: '1.1.0', fingerprint: 'fp-v2' }) expect(inventory.items[0].targets).toHaveLength(2) - const listed = await runCli(['list', '--json'], { HOME: env.home, USERPROFILE: env.home }) + const listed = await runCli(['list', '--json', '--registry', registry.url], { + HOME: env.home, + USERPROFILE: env.home + }) expect(listed.exitCode).toBe(0) expect(JSON.parse(listed.stdout).items[0]).toMatchObject({ version: '1.1.0' }) })