1.0.6 • Published 6 months ago
@types/atom-mocha-test-runner v1.0.6
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
- Last updated: Wed, 07 Jul 2021 21:44:37 GMT
- Dependencies: @types/atom, @types/mocha
- Global values: none
Credits
These definitions were written by GlenCFL.