Add basic performance testing via Cypress (#8586)
This commit is contained in:
Vendored
+7
-1
@@ -18,6 +18,7 @@ import "matrix-js-sdk/src/@types/global";
|
||||
import type { MatrixClient, ClientEvent } from "matrix-js-sdk/src/client";
|
||||
import type { RoomMemberEvent } from "matrix-js-sdk/src/models/room-member";
|
||||
import type { MatrixDispatcher } from "../src/dispatcher/dispatcher";
|
||||
import type PerformanceMonitor from "../src/performance";
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
@@ -27,6 +28,7 @@ declare global {
|
||||
matrixClient?: MatrixClient;
|
||||
};
|
||||
mxDispatcher: MatrixDispatcher;
|
||||
mxPerformanceMonitor: PerformanceMonitor;
|
||||
beforeReload?: boolean; // for detecting reloads
|
||||
// Partial type for the matrix-js-sdk module, exported by browser-matrix
|
||||
matrixcs: {
|
||||
@@ -38,7 +40,11 @@ declare global {
|
||||
}
|
||||
|
||||
interface Window {
|
||||
mxDispatcher: MatrixDispatcher; // to appease the MatrixDispatcher import
|
||||
// to appease the MatrixDispatcher import
|
||||
mxDispatcher: MatrixDispatcher;
|
||||
// to appease the PerformanceMonitor import
|
||||
mxPerformanceMonitor: PerformanceMonitor;
|
||||
mxPerformanceEntryNames: any;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user