forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jasmine-node.d.ts
37 lines (31 loc) · 1.13 KB
/
jasmine-node.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Type definitions for jasmine-node v1.14.5
// Project: https://github.com/mhevery/jasmine-node
// Definitions by: Sven Reglitzki <https://github.com/svi3c/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="../jasmine/legacy/jasmine-1.3.d.ts"/>
declare function it(expectation:string, assertion:(done:(err?:any) => void) => void, timeout?:number):void;
declare module "jasmine-node" {
interface ExecuteSpecsOptions {
specFolders: string[],
onComplete?: (runner:jasmine.Runner) => void,
isVerbose?: boolean,
showColors?: boolean,
teamcity?: string | boolean,
useRequireJs?: boolean,
regExpSpec: RegExp,
junitreport?: {
report: boolean,
savePath: string,
useDotNotation: boolean,
consolidate: boolean
},
includeStackTrace?: boolean,
growl?: boolean
}
interface JasmineNode {
executeSpecsInFolder(options:ExecuteSpecsOptions): void;
loadHelpersInFolder(path:string, pattern:RegExp): void;
}
var jasmine:JasmineNode;
export = jasmine;
}