Socket
Book a DemoInstallSign in
Socket

@microsoft/gulp-core-build-mocha

Package Overview
Dependencies
Maintainers
2
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/gulp-core-build-mocha

`gulp-core-build-mocha` is a `gulp-core-build` subtask for running unit tests and creating coverage reports using mocha/chai. This setup is useful for unit testing build tools, as it runs in the node process rather than in a browser.

latest
Source
npmnpm
Version
3.11.0
Version published
Weekly downloads
798
176.12%
Maintainers
2
Weekly downloads
 
Created
Source

gulp-core-build-mocha

gulp-core-build-mocha is a gulp-core-build subtask for running unit tests and creating coverage reports using mocha/chai. This setup is useful for unit testing build tools, as it runs in the node process rather than in a browser.

npm version Build Status Dependencies

Description

gulp-core-build-mocha is a gulp-core-build plugin which will automatically execute a set of unit test files using the mocha test suite.

MochaTask

Usage

Simply create a file which ends in .test.js. Next, register the Mocha task to gulp-core-build.

A coverage report is both written to the console and to a folder on disk.

Configuration

testMatch

Sets the glob pattern which is used to locate the files to run tests on.

Default: 'lib/**/*.test.js'

reportDir

The folder in which to store the coverage reports.

Default: 'coverage'

InstrumentTask

Usage

This task selects which files should be covered by the code coverage tool.

Configuration

coverageMatch

An array of globs which define which files should be included in code coverage reports.

Default: ['lib/**/*.js', '!lib/**/*.test.js']

License

MIT

FAQs

Package last updated on 16 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts