Skip to content

Commit

Permalink
chore(transport): make messages param required in abstract constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Jan 27, 2025
1 parent 4d9b233 commit 61c7981
Show file tree
Hide file tree
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
Expand Up @@ -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 => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/transport/src/transports/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type ReleaseInput = {
};

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

await transport.init();
Expand Down

0 comments on commit 61c7981

Please sign in to comment.