UNPKG

1.43 kBTypeScriptView Raw
1// Type definitions for jasmine-node v1.14.5
2// Project: https://github.com/mhevery/jasmine-node
3// Definitions by: Sven Reglitzki <https://github.com/svi3c>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5// TypeScript Version: 2.8
6
7import "jasmine";
8
9declare global {
10 function it(expectation: string, assertion: (done: (err?: any) => void) => void, timeout?: number): void;
11
12 namespace jasmine {
13 interface Env {
14 defaultTimeoutInterval: number;
15 }
16
17 interface ExecuteSpecsOptions {
18 specFolders: string[];
19 onComplete?: ((runner: Runner) => void) | undefined;
20 isVerbose?: boolean | undefined;
21 showColors?: boolean | undefined;
22 teamcity?: string | boolean | undefined;
23 useRequireJs?: boolean | undefined;
24 regExpSpec: RegExp;
25 junitreport?: {
26 report: boolean;
27 savePath: string;
28 useDotNotation: boolean;
29 consolidate: boolean;
30 } | undefined;
31 includeStackTrace?: boolean | undefined;
32 growl?: boolean | undefined;
33 }
34
35 interface JasmineNode {
36 executeSpecsInFolder(options: ExecuteSpecsOptions): void;
37 loadHelpersInFolder(path: string, pattern: RegExp): void;
38 }
39 }
40}
41
42declare const jasmine: jasmine.JasmineNode;
43export = jasmine;
44
\No newline at end of file