fix(ci): satisfy lint contracts-ready lane

This commit is contained in:
imccyu
2026-08-11 19:25:43 +08:00
parent ac01c3b035
commit 3727e242cd
4 changed files with 6 additions and 17 deletions
+1 -5
View File
@@ -667,11 +667,7 @@ describe('Client TypeRT API', () => {
const seen: string[] = []
// The declared return is void, so nobody awaits an async listener: the
// rejection has to be contained here or it escapes as an unhandled one.
/* oxlint-disable-next-line typescript/no-misused-promises --
* Deliberately the shape the contract does not invite: `$on` declares a void
* listener, and this pins what the service does when a caller hands it an
* async one anyway. */
ctx.remote.$on('fixture/changed', () => Promise.reject(new Error('fixture async failure')))
ctx.remote.$on('fixture/changed', () => Promise.reject(new Error('fixture async failure'))) // oxlint-disable-line typescript/no-misused-promises
ctx.remote.$on('fixture/changed', (namespace) => { seen.push(namespace) })
try {
ctx.remote.$dispatch('fixture/changed', ['credentials'])