ismocha
ismocha checks whether code is run using Mocha.
Last updated 5 years ago by thenativeweb-admin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ismocha 
SYNC missed versions from official npm registry.

ismocha

ismocha checks whether code is run using Mocha.

Status

Category Status
Version npm
Dependencies David
Dev dependencies David
Build GitHub Actions
License GitHub

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

Current Tags

  • 3.0.7                                ...           latest (5 years ago)

13 Versions

  • 3.0.7                                ...           5 years ago
  • 3.0.6                                ...           5 years ago
  • 3.0.5                                ...           5 years ago
  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           6 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 2
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |