Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(transport): make messages param required in abstract constructor
Browse files Browse the repository at this point in the history
mroz22 committed Jan 27, 2025
1 parent 4d9b233 commit 61c7981
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/connect/setupJest.ts
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ export const createTestTransport = (apiMethods = {}) =>
new TestTransport({
api: createTransportApi(apiMethods),
id: 'foo-bar-id',
messages: {},
});

export const getDeviceFeatures = (feat?: Partial<Features>): Features => ({
2 changes: 1 addition & 1 deletion packages/transport/src/transports/abstract.ts
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ export type ReleaseInput = {
};

export interface AbstractTransportParams {
messages?: Record<string, any>;
messages: Record<string, any>;
logger?: Logger;
debugLink?: boolean;
id: string;
1 change: 1 addition & 0 deletions packages/transport/tests/abstractUsb.test.ts
Original file line number Diff line number Diff line change
@@ -88,6 +88,7 @@ describe('Usb', () => {
const transport = new TestUsbTransport({
api: testUsbApi,
id: 'test',
messages: {},
});

await transport.init();

0 comments on commit 61c7981

Please sign in to comment.