Switch to importing matrix-js-sdk from its main export (#11360)
* Switch to importing TypedEventEmitter from main js-sdk export * Switch to importing js-sdk/matrix in cypress * Remove duplicated imports * Fix lint:js-fix to run prettier last otherwise ESLint --fix may cause a mess * Add lint rule * Fix cypress-axe import * Fix cypress-axe import
This commit is contained in:
parent
44f51fd1cb
commit
47877ba2da
46 changed files with 82 additions and 87 deletions
|
@ -16,7 +16,6 @@ limitations under the License.
|
|||
|
||||
import { act, render, waitFor } from "@testing-library/react";
|
||||
import React, { ComponentProps } from "react";
|
||||
import { TypedEventEmitter } from "matrix-js-sdk/src/models/typed-event-emitter";
|
||||
import { User } from "matrix-js-sdk/src/models/user";
|
||||
import { mocked, Mocked } from "jest-mock";
|
||||
import {
|
||||
|
@ -29,7 +28,7 @@ import {
|
|||
VerifierEvent,
|
||||
VerifierEventHandlerMap,
|
||||
} from "matrix-js-sdk/src/crypto-api/verification";
|
||||
import { Device, MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||
import { TypedEventEmitter, Device, MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import VerificationPanel from "../../../../src/components/views/right_panel/VerificationPanel";
|
||||
import { flushPromises, stubClient } from "../../../test-utils";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue