mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
526b0ad33e
Summary: - Update rules to be more like we've had with tslint - Switch tsserver plugin to eslint (tsserver makes for a much faster way to lint in editors) - Apply suggested auto-fixes - Fix all lint errors and warnings in core/, app/, test/ Test Plan: Some behavior may change subtly (e.g. added missing awaits), relying on existing tests to catch problems. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2785
21 lines
946 B
TypeScript
21 lines
946 B
TypeScript
import {UserProfile} from 'app/common/LoginSessionAPI';
|
|
|
|
export interface ITestingHooks {
|
|
getOwnPort(): Promise<number>;
|
|
getPort(): Promise<number>;
|
|
updateAuthToken(instId: string, authToken: string): Promise<void>;
|
|
getAuthToken(instId: string): Promise<string|null>;
|
|
useTestToken(instId: string, token: string): Promise<void>;
|
|
setLoginSessionProfile(gristSidCookie: string, profile: UserProfile|null, org?: string): Promise<void>;
|
|
setServerVersion(version: string|null): Promise<void>;
|
|
disconnectClients(): Promise<void>;
|
|
commShutdown(): Promise<void>;
|
|
commRestart(): Promise<void>;
|
|
commSetClientPersistence(ttlMs: number): Promise<void>;
|
|
closeDocs(): Promise<void>;
|
|
setDocWorkerActivation(workerId: string, active: 'active'|'inactive'|'crash'): Promise<void>;
|
|
flushAuthorizerCache(): Promise<void>;
|
|
getDocClientCounts(): Promise<Array<[string, number]>>;
|
|
setActiveDocTimeout(seconds: number): Promise<number>;
|
|
}
|