Options
All
  • Public
  • Public/Protected
  • All
Menu

External module targets/mocha

This module defines the mocha target type used to build and run Mocha tests.

In the following list of tasks, {target} represents the name of the target as defined by the name property of the target options. The lib target provides the following tasks:

{target}

Build and run the tests, use the console reporter.

{target}:build

Performs a full test build of the library and test files.

{target}:run

Only run the tests (does not build the tests).

{target}:coverage

Run tests with coverage (does not build the tests).

{target}:typedoc:deploy

Deploy the Typedoc documentation using git. This can be used to easily deploy the documentation to the gh-pages branch.

{target}:clean

Remove the build and directory corresponding to this target.

{target}:tsconfig.json

Emit a tsconfig.json file corresponding to the configuration for this target. This allows to compile it using the command line tsc program. This is also useful for IDE to auto-detect the configuration of the project.

Index

Functions

generateMochaTasks

registerMochaTasks

  • Generates and registers gulp tasks for the provided Mocha target.

    Parameters

    • taker: Undertaker

      Undertaker (or Gulp) instance where the tasks will be registered.

    • targetOptions: MochaTarget

      Target configuration.

    Returns MochaTasks

resolveMochaTarget

Generated using TypeDoc