Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Cypress: fix dodgy use of string as event name #10963

Merged
merged 1 commit into from
May 23, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented May 22, 2023

matrix-org/matrix-js-sdk#3386 tightened up the type safety of VerificationBase<any,any> (as returned by VerificationRequest.beginKeyVerification()): previously it was a TypedEventEmitter<any,any>, whereas it is now a TypedEventEmitter<VerifierEvent, VerifierEventHandlerMap>.

That shouldn't make any difference for applications which are correctly using a value from one of the event type enums; however in this cypress test we are using a stringy event name, which Typescript complains about.

We have this problem elsewhere, and solve it by liberal use of @ts-ignore, so I have done the same here.


This change is marked as an internal change (Task), so will not be included in the changelog.

@richvdh richvdh requested a review from a team as a code owner May 22, 2023 17:23
@richvdh richvdh added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label May 22, 2023
@richvdh richvdh mentioned this pull request May 22, 2023
3 tasks
@germain-gg germain-gg removed their request for review May 23, 2023 08:22
@richvdh richvdh added this pull request to the merge queue May 23, 2023
Merged via the queue into develop with commit f9e99ed May 23, 2023
@richvdh richvdh deleted the rav/cypress/fix_verifier_events_ref branch May 23, 2023 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants