Skip to content

Commit

Permalink
xplicitly annotate mock types (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Nov 8, 2023
1 parent 6f2c79f commit 4ab91e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ vi.mock('../room/RTCEngine');

// mock helpers for testing

const mocks = {
const mocks: {
SignalClient: MockedClass<typeof SignalClient>;
RTCEngine: MockedClass<typeof RTCEngine>;
MockLocalVideoTrack: { stop: () => void };
} = {
SignalClient: SignalClient as MockedClass<typeof SignalClient>,
RTCEngine: RTCEngine as MockedClass<typeof RTCEngine>,
MockLocalVideoTrack: {
Expand Down

0 comments on commit 4ab91e9

Please sign in to comment.