chromatic
Version:
Automate visual testing across browsers. Gather UI feedback. Versioned documentation.
11 lines (10 loc) • 337 B
TypeScript
/**
* Checks whether the code is running within Chromatic.
*
* @param window The window object whose `navigator` and/or `location` is used to determine if
* running in Chromatic.
*
* @returns `true` if running within Chromatic, `false` otherwise.
*/
declare function isChromatic(window?: Window): boolean;
export = isChromatic;