Skip to content

Commit c965590

Browse files
committed
test(cloud-connection): the composed-uninstall pin reads only the uninstall's own warnings
Claude-Session: https://claude.ai/code/session_01FEkQ5pHNFS9mn8hS13iGyL Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0e3b432 commit c965590

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/cloud-connection/src/marketplace-install-local-composed-uninstall.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ describe('[ADR-0130 D4] an install-local uninstall of a composed artifact uninst
196196

197197
it('DELETE of the install entry answers 200 and withdraws every member, the extending module before the app it extends', async () => {
198198
const booted = await installComposed();
199+
const warnedBefore = booted.warnings().length;
199200

200201
const res = await booted.uninstall(APP);
201202

@@ -208,7 +209,8 @@ describe('[ADR-0130 D4] an install-local uninstall of a composed artifact uninst
208209
expect(booted.ql.registry.getObjectContributors(OBJECT)).toEqual([]);
209210
// Every withdrawal succeeded, so none is reported as a failed outcome.
210211
expect(res.payload.data.cleanups).toEqual([]);
211-
expect(booted.warnings()).toEqual([]);
212+
// The uninstall itself warns of nothing (the install's own warnings are not this test's).
213+
expect(booted.warnings().slice(warnedBefore)).toEqual([]);
212214
});
213215

214216
it('the extending module goes first even when the artifact lists it ahead of the app', async () => {

0 commit comments

Comments
 (0)