UNPKG

1.82 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/gulp-jasmine`
3
4# Summary
5This package contains type definitions for gulp-jasmine (https://github.com/sindresorhus/gulp-jasmine#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-jasmine.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-jasmine/index.d.ts)
10````ts
11/// <reference types="node" />
12/// <reference types="jasmine" />
13
14interface JasmineOptions {
15 /**
16 * Display spec names in default reporter.
17 */
18 verbose?: boolean | undefined;
19
20 /**
21 * Include stack traces in failures in default reporter.
22 * @default false
23 */
24 includeStackTrace?: boolean | undefined;
25
26 /**
27 * Reporter(s) to use.
28 */
29 reporter?: jasmine.CustomReporter | readonly jasmine.CustomReporter[] | undefined;
30
31 /**
32 * Time to wait in milliseconds before a test automatically fails.
33 * @default 5000
34 */
35 timeout?: number | undefined;
36
37 /**
38 * Stops the stream on failed tests.
39 * @default true
40 */
41 errorOnFail?: boolean | undefined;
42
43 /**
44 * Passes the config to Jasmine's loadConfig method.
45 */
46 config?: object | undefined;
47}
48
49/**
50 * Executes Jasmine tests. Emits a 'jasmineDone' event on success.
51 * @param options Optional options for the execution of the Jasmine test
52 */
53declare function gulpJasmine(options?: JasmineOptions): NodeJS.ReadWriteStream;
54export = gulpJasmine;
55
56````
57
58### Additional Details
59 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
60 * Dependencies: [@types/jasmine](https://npmjs.com/package/@types/jasmine), [@types/node](https://npmjs.com/package/@types/node)
61
62# Credits
63These definitions were written by [Andrey Lalev](https://github.com/andypyrope).
64
\No newline at end of file