test(api): avoid mixed Remote result inference

This commit is contained in:
imccyu
2026-08-27 03:06:58 +08:00
parent fd7f2065b2
commit fcba3bbacb
@@ -92,7 +92,7 @@ describe('the settings Remote namespace a configuration page calls', () => {
() => ctx.settingsController.replace('ui-test', {}, undefined),
() => ctx.settingsController.mutate('ui-test', [], undefined),
]) {
const failure = await Promise.resolve().then(call).catch((error: unknown) => error)
const failure = await Promise.resolve().then(() => call()).catch((error: unknown) => error)
expect(failure).toBeInstanceOf(TypertRemoteFailure)
expect((failure as TypertRemoteFailure).failure).toEqual({
code: 'internal',