UNPKG

1.36 kBTypeScriptView Raw
1// Type definitions for gulp-jasmine 2.4
2// Project: https://github.com/sindresorhus/gulp-jasmine#readme
3// Definitions by: Andrey Lalev <https://github.com/andypyrope>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5// TypeScript Version: 2.8
6
7/// <reference types="node" />
8/// <reference types="jasmine" />
9
10interface JasmineOptions {
11 /**
12 * Display spec names in default reporter.
13 */
14 verbose?: boolean | undefined;
15
16 /**
17 * Include stack traces in failures in default reporter.
18 * @default false
19 */
20 includeStackTrace?: boolean | undefined;
21
22 /**
23 * Reporter(s) to use.
24 */
25 reporter?: jasmine.CustomReporter | ReadonlyArray<jasmine.CustomReporter> | undefined;
26
27 /**
28 * Time to wait in milliseconds before a test automatically fails.
29 * @default 5000
30 */
31 timeout?: number | undefined;
32
33 /**
34 * Stops the stream on failed tests.
35 * @default true
36 */
37 errorOnFail?: boolean | undefined;
38
39 /**
40 * Passes the config to Jasmine's loadConfig method.
41 */
42 config?: object | undefined;
43}
44
45/**
46 * Executes Jasmine tests. Emits a 'jasmineDone' event on success.
47 * @param options Optional options for the execution of the Jasmine test
48 */
49declare function gulpJasmine(options?: JasmineOptions): NodeJS.ReadWriteStream;
50export = gulpJasmine;