@types/atom-mocha-test-runner
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @types/atom-mocha-test-runner

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

4.96 kB

Total Files

5

Last publish

Collaborators

  • types