3.0.7 • Published 3 years ago

ismocha v3.0.7

Weekly downloads
1,123
License
MIT
Repository
github
Last release
3 years ago

ismocha

ismocha checks whether code is run using Mocha.

Status

CategoryStatus
Versionnpm
DependenciesDavid
Dev dependenciesDavid
BuildGitHub Actions
LicenseGitHub

Installation

$ npm install ismocha

Quick start

First you need to integrate ismocha into your application.

const { isMocha } = require('ismocha');

If you use TypeScript, use the following code instead:

import { isMocha } from 'ismocha';

Then call the isMocha function. If you run this in a process started by Mocha, the function will return true; otherwise it will return false:

if (isMocha()) {
  // ...
}

Running quality assurance

To run quality assurance for this module use roboter:

$ npx roboter
3.0.7

3 years ago

3.0.4

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago

0.1.1

7 years ago

0.1.0

7 years ago