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