UNPKG

@itwin/core-backend

Version:
38 lines 1.48 kB
import { IModelHostOptions } from "../IModelHost"; /** Class for simple test timing */ export declare class Timer { private _label; private _start; constructor(label: string); end(): void; } /** * Disables native code assertions from firing. This can be used by tests that intentionally * test failing operations. If those failing operations raise assertions in native code, the test * would fail unexpectedly in a debug build. In that case the native code assertions can be disabled with * this class. */ export declare class DisableNativeAssertions implements Disposable { private _native; constructor(); [Symbol.dispose](): void; /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */ dispose(): void; } export declare class TestUtils { static getCacheDir(fallback?: string | undefined): string | undefined; /** Handles the startup of IModelHost. * The provided config is used and will override any of the default values used in this method. * * The default includes: * - cacheDir = path.join(__dirname, ".cache") * - allowSharedChannel = false; */ static startBackend(config?: IModelHostOptions): Promise<void>; static shutdownBackend(): Promise<void>; static setupLogging(): void; private static initDebugLogLevels; static setupDebugLogLevels(): void; static resetDebugLogLevels(): void; } //# sourceMappingURL=TestUtils.d.ts.map