UNPKG

1.59 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/mocha-phantomjs`
3
4# Summary
5This package contains type definitions for mocha-phantomjs (http://metaskills.net/mocha-phantomjs/).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mocha-phantomjs.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mocha-phantomjs/index.d.ts)
10````ts
11// Type definitions for mocha-phantomjs v3.5.0
12// Project: http://metaskills.net/mocha-phantomjs/
13// Definitions by: Erik Schierboom <https://github.com/ErikSchierboom>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15
16interface MochaPhantomJsWindowOptions extends Window {
17 env: any;
18 failures: number;
19 ended: boolean;
20 started: boolean;
21 run(): void;
22}
23
24interface Window {
25 mochaPhantomJS(): MochaPhantomJsWindowOptions;
26}
27
28interface MochaPhantomJSOptions {
29 headers?: any;
30 cookies?: any[] | undefined;
31 viewportSize?: number | undefined;
32 timeout?: number | undefined;
33 file?: string | undefined;
34}
35
36interface MochaPhantomJS {
37 url: string;
38 columns: number;
39 mochaStartWait: number;
40 startTime: Date;
41 output: any;
42
43 run(): void;
44 customizeMocha(options: MochaPhantomJSOptions): void;
45}
46
47declare var mochaPhantomJS: MochaPhantomJS;
48
49````
50
51### Additional Details
52 * Last updated: Thu, 08 Jul 2021 18:50:53 GMT
53 * Dependencies: none
54 * Global values: `mochaPhantomJS`
55
56# Credits
57These definitions were written by [Erik Schierboom](https://github.com/ErikSchierboom).
58
\No newline at end of file