Skip to content

showForTests beta ​

Function of @v12-engine/client

ts
export declare function showForTests<K extends keyof TestHandles>(name: K, value: TestHandles[K] | undefined, was?: TestHandles[K]): void;

Shows a part of the page to its browser tests by a name (window.__v12[name]), when it was opened for them (?test), or takes it away again (undefined; only while it is still the one shown: a newer one stays). A game's own parts too: a panel, a stage, a HUD of its own its specs read