Add basic performance testing via Cypress (#8586)

This commit is contained in:
J. Ryan Stinnett
2022-05-17 15:38:45 +01:00
committed by GitHub
parent 83b3dfa341
commit c122c5cd3b
17 changed files with 169 additions and 18 deletions
+7 -1
View File
@@ -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;
}
}