Skip to content

Commit 167dca9

Browse files
committed
test(runtime): keep the new migrate-stored pin inside the test-typecheck ledger
The isSystem pin read res.response.status, which tsc reports as possibly undefined (TS18048) and grew the shrink-only debt ledger by one. Read it through optional chaining; an undefined response still fails toBe(200). Claude-Session: https://claude.ai/code/session_01ADzJtzYTLUfgrRZHxkagkX Co-authored-by: Claude <noreply@anthropic.com>
1 parent df2f5e3 commit 167dca9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/runtime/src/domains/meta-migrate-stored.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('POST /meta/_migrate-stored — preview by default (#4327)', () => {
147147
const res = await make({ migrateStoredMetadata }).handleMetadata(
148148
'/_migrate-stored', ctx({ isSystem: true }), 'POST', { apply: true },
149149
);
150-
expect(res.response.status).toBe(200);
150+
expect(res.response?.status).toBe(200);
151151
expect(migrateStoredMetadata.mock.calls[0][0]).not.toHaveProperty('actor');
152152
});
153153

0 commit comments

Comments
 (0)