1 | # Installation
|
2 | > `npm install --save @types/mocha-phantomjs`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for mocha-phantomjs (http://metaskills.net/mocha-phantomjs/).
|
6 |
|
7 | # Details
|
8 | Files 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 | interface MochaPhantomJsWindowOptions extends Window {
|
12 | env: any;
|
13 | failures: number;
|
14 | ended: boolean;
|
15 | started: boolean;
|
16 | run(): void;
|
17 | }
|
18 |
|
19 | interface Window {
|
20 | mochaPhantomJS(): MochaPhantomJsWindowOptions;
|
21 | }
|
22 |
|
23 | interface MochaPhantomJSOptions {
|
24 | headers?: any;
|
25 | cookies?: any[] | undefined;
|
26 | viewportSize?: number | undefined;
|
27 | timeout?: number | undefined;
|
28 | file?: string | undefined;
|
29 | }
|
30 |
|
31 | interface MochaPhantomJS {
|
32 | url: string;
|
33 | columns: number;
|
34 | mochaStartWait: number;
|
35 | startTime: Date;
|
36 | output: any;
|
37 |
|
38 | run(): void;
|
39 | customizeMocha(options: MochaPhantomJSOptions): void;
|
40 | }
|
41 |
|
42 | declare var mochaPhantomJS: MochaPhantomJS;
|
43 |
|
44 | ````
|
45 |
|
46 | ### Additional Details
|
47 | * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
|
48 | * Dependencies: none
|
49 |
|
50 | # Credits
|
51 | These definitions were written by [Erik Schierboom](https://github.com/ErikSchierboom).
|
52 |
|
\ | No newline at end of file |