Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-runner-mocha

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-runner-mocha

An experimental Mocha runner for Jest

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
decreased by-21.74%
Maintainers
1
Weekly downloads
 
Created
Source

jest-runner-mocha

An experimental test runner for Jest that runs Mocha tests within Jest.

Usage

Install

yarn add --dev jest-runner-mocha

Add it to your Jest config

module.exports = {
  runner: 'jest-runner-mocha',
}

Run Jest

yarn jest

Config options

NOTE: Eventually Jest shoul have a runnerConfig option that will eliminate the need for jest-runner-mocha.config.js

Create a jest-runner-mocha.config.js at the <rootDir> or your Jest project.

  • ui: (Optional) the UI used by mocha
// example
module.exports = {
  ui: 'tdd',
}
  • compiler: (Optional) the used for adding a compile step to your mocha tests
// example
module.exports = {
  compiler: '/absolute/path/to/babel-register/or/other/compiler',
}

Known issues

  • It does not support Mocha options except for ui and compiler
  • You can't run it with jest --coverage
  • Support for compilers is very limited.
  • Does not support jest --runInBand

FAQs

Package last updated on 05 Sep 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc