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
|
@ -18,8 +18,8 @@ limitations under the License.
|
|||
|
||||
import "cypress-axe";
|
||||
import * as axe from "axe-core";
|
||||
import { Options } from "cypress-axe";
|
||||
|
||||
import type { Options } from "cypress-axe";
|
||||
import Chainable = Cypress.Chainable;
|
||||
|
||||
function terminalLog(violations: axe.Result[]): void {
|
||||
|
|
|
@ -16,11 +16,17 @@ limitations under the License.
|
|||
|
||||
/// <reference types="cypress" />
|
||||
|
||||
import type { FileType, Upload, UploadOpts } from "matrix-js-sdk/src/http-api";
|
||||
import type { ICreateRoomOpts, ISendEventResponse } from "matrix-js-sdk/src/@types/requests";
|
||||
import type { MatrixClient } from "matrix-js-sdk/src/client";
|
||||
import type { Room } from "matrix-js-sdk/src/models/room";
|
||||
import type { IContent, MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
import type {
|
||||
MatrixClient,
|
||||
Room,
|
||||
MatrixEvent,
|
||||
IContent,
|
||||
FileType,
|
||||
Upload,
|
||||
UploadOpts,
|
||||
ICreateRoomOpts,
|
||||
ISendEventResponse,
|
||||
} from "matrix-js-sdk/src/matrix";
|
||||
import type { ReceiptType } from "matrix-js-sdk/src/@types/read_receipts";
|
||||
import Chainable = Cypress.Chainable;
|
||||
import { UserCredentials } from "./login";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue