@jsdevtools/karma-host-environment
Version:
Access host info (OS, browser version, environment variables) in browser tests
13 lines (12 loc) • 418 B
TypeScript
import { Host } from "@jsdevtools/host-environment";
/**
* Extends the Host interface with information about the Karma server.
*/
export interface KarmaHost extends Host {
/**
* If running in a web browser being served by Karma, then this property is
* the `Host` object of the Karma server. This allows you to access things like
* the server's OS, Node version, etc.
*/
karma?: Host;
}