1.0.6 • Published 6 months ago

@types/atom-mocha-test-runner v1.0.6

Weekly downloads
24
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/atom-mocha-test-runner

Summary

This package contains type definitions for atom-mocha-test-runner (https://github.com/BinaryMuse/atom-mocha-test-runner).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/atom-mocha-test-runner.

index.d.ts

// Type definitions for atom-mocha-test-runner 1.0
// Project: https://github.com/BinaryMuse/atom-mocha-test-runner
// Definitions by: GlenCFL <https://github.com/GlenCFL>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="mocha" />

import { TestRunner } from "atom";

interface AtomMochaOptions {
    /** Which reporter to use on the terminal. */
    reporter?: string | undefined;

    /** Whether or not to assign the created Atom environment to `global.atom`. */
    globalAtom?: boolean | undefined;

    /** File extensions that indicate that the file contains tests. */
    testSuffixes?: string[] | undefined;

    /** Whether or not to colorize output on the terminal. */
    colors?: boolean | undefined;

    /** The string to use for the window title in the HTML reporter. */
    htmlTitle?: string | undefined;
}

// The test runner function is augmented on export by:
//   import createRunner from './lib/create-runner'
//
//   module.exports = createRunner()
//   module.exports.createRunner = createRunner
// Which is what we're trying to model here.
interface TestRunnerExport extends TestRunner {
    createRunner(options?: AtomMochaOptions, mochaConfigFunction?:
        (mocha: Mocha) => void): TestRunner;
}

declare const runner: TestRunnerExport;
export = runner;

Additional Details

Credits

These definitions were written by GlenCFL.

1.0.6

6 months ago

1.0.5

7 months ago

1.0.4

8 months ago

1.0.3

3 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago