diff --git a/packages/casting/test/fake-rpc-server.js b/packages/casting/test/fake-rpc-server.js index 118c3646ce5c..d674bcee5722 100644 --- a/packages/casting/test/fake-rpc-server.js +++ b/packages/casting/test/fake-rpc-server.js @@ -64,8 +64,9 @@ const fakeStatusResult = { }, }; +/** @typedef {Partial void>}>> & {context}} fakeServerTestContext */ /** - * @param {Assertions} t + * @param {fakeServerTestContext} t * @param {Array<{any}>} fakeValues * @param {object} [options] * @param {Marshaller} [options.marshaller] @@ -249,10 +250,12 @@ export const develop = async () => { unserialize({ body: jsonMarshalled, slots: [] }), ), ); - const mockT = { - log: console.log, - context: { cleanups: [] }, - }; + const mockT = /** @type {fakeServerTestContext} */ ( + /** @type {unknown} */ ({ + log: console.log, + context: { cleanups: [] }, + }) + ); const PORT = await startFakeServer(mockT, [...fakeValues]); console.log( `Try this in another terminal: