npm.io
3.5.33 • Published 2 years ago

@types/mocha-phantomjs

Licence
MIT
Version
3.5.33
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/mocha-phantomjs

Summary

This package contains type definitions for mocha-phantomjs (http://metaskills.net/mocha-phantomjs/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mocha-phantomjs.

index.d.ts

interface MochaPhantomJsWindowOptions extends Window {
    env: any;
    failures: number;
    ended: boolean;
    started: boolean;
    run(): void;
}

interface Window {
    mochaPhantomJS(): MochaPhantomJsWindowOptions;
}

interface MochaPhantomJSOptions {
    headers?: any;
    cookies?: any[] | undefined;
    viewportSize?: number | undefined;
    timeout?: number | undefined;
    file?: string | undefined;
}

interface MochaPhantomJS {
    url: string;
    columns: number;
    mochaStartWait: number;
    startTime: Date;
    output: any;

    run(): void;
    customizeMocha(options: MochaPhantomJSOptions): void;
}

declare var mochaPhantomJS: MochaPhantomJS;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Erik Schierboom.