@types/gulp-jasmine
Version:
TypeScript definitions for gulp-jasmine
64 lines (51 loc) • 1.82 kB
Markdown
# Installation
> `npm install --save @types/gulp-jasmine`
# Summary
This package contains type definitions for gulp-jasmine (https://github.com/sindresorhus/gulp-jasmine#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-jasmine.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-jasmine/index.d.ts)
````ts
/// <reference types="node" />
/// <reference types="jasmine" />
interface JasmineOptions {
/**
* Display spec names in default reporter.
*/
verbose?: boolean | undefined;
/**
* Include stack traces in failures in default reporter.
* @default false
*/
includeStackTrace?: boolean | undefined;
/**
* Reporter(s) to use.
*/
reporter?: jasmine.CustomReporter | readonly jasmine.CustomReporter[] | undefined;
/**
* Time to wait in milliseconds before a test automatically fails.
* @default 5000
*/
timeout?: number | undefined;
/**
* Stops the stream on failed tests.
* @default true
*/
errorOnFail?: boolean | undefined;
/**
* Passes the config to Jasmine's loadConfig method.
*/
config?: object | undefined;
}
/**
* Executes Jasmine tests. Emits a 'jasmineDone' event on success.
* @param options Optional options for the execution of the Jasmine test
*/
declare function gulpJasmine(options?: JasmineOptions): NodeJS.ReadWriteStream;
export = gulpJasmine;
````
### Additional Details
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: [@types/jasmine](https://npmjs.com/package/@types/jasmine), [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Andrey Lalev](https://github.com/andypyrope).