UNPKG

turbo-gulp

Version:

Gulp tasks to boost high-quality projects.

27 lines (26 loc) 869 B
/// <reference types="gulp" /> import { Gulp } from "gulp"; import { AbsPosixPath } from "../types"; import { TaskFunction } from "../utils/gulp-task-function"; export declare type MochaReporter = "spec"; export interface MochaOptions { rootDir: AbsPosixPath; testDir: AbsPosixPath; reporter?: MochaReporter; /** * Test `.spec.mjs` files instead of `.spec.js` (mixed is not supported) * Default: `false` */ mjs?: boolean; colors?: boolean; } export interface ResolvedMochaOptions { rootDir: AbsPosixPath; testDir: AbsPosixPath; reporter: MochaReporter; mjs: boolean; colors: boolean; } export declare function resolveMochaOptions(options: MochaOptions): ResolvedMochaOptions; export declare function generateTask(gulp: Gulp, options: MochaOptions): TaskFunction; export declare function getTaskName(): string;