@types/gulp-jasmine
TypeScript icon, indicating that this package has built-in type declarations

2.4.6 • Public • Published

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

/// <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

Credits

These definitions were written by Andrey Lalev.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/gulp-jasmine

Weekly Downloads

160

Version

2.4.6

License

MIT

Unpacked Size

4.93 kB

Total Files

5

Last publish

Collaborators

  • types