1 | /// <reference types="node" />
|
2 | /// <reference types="jasmine" />
|
3 |
|
4 | interface JasmineOptions {
|
5 | /**
|
6 | * Display spec names in default reporter.
|
7 | */
|
8 | verbose?: boolean | undefined;
|
9 |
|
10 | /**
|
11 | * Include stack traces in failures in default reporter.
|
12 | * @default false
|
13 | */
|
14 | includeStackTrace?: boolean | undefined;
|
15 |
|
16 | /**
|
17 | * Reporter(s) to use.
|
18 | */
|
19 | reporter?: jasmine.CustomReporter | readonly jasmine.CustomReporter[] | undefined;
|
20 |
|
21 | /**
|
22 | * Time to wait in milliseconds before a test automatically fails.
|
23 | * @default 5000
|
24 | */
|
25 | timeout?: number | undefined;
|
26 |
|
27 | /**
|
28 | * Stops the stream on failed tests.
|
29 | * @default true
|
30 | */
|
31 | errorOnFail?: boolean | undefined;
|
32 |
|
33 | /**
|
34 | * Passes the config to Jasmine's loadConfig method.
|
35 | */
|
36 | config?: object | undefined;
|
37 | }
|
38 |
|
39 | /**
|
40 | * Executes Jasmine tests. Emits a 'jasmineDone' event on success.
|
41 | * @param options Optional options for the execution of the Jasmine test
|
42 | */
|
43 | declare function gulpJasmine(options?: JasmineOptions): NodeJS.ReadWriteStream;
|
44 | export = gulpJasmine;
|