@mongodb-js/mocha-config-compass

1.3.8 • Public • Published

@mongodb-js/mocha-config-compass

Shared mocha configuration for Compass packages.

Usage

For general-purpose packages install as dependency and add the following configuration file

// file:<package>/.mocharc.js
module.exports = require('@mongodb-js/mocha-config-compass');

This configuration activates the colors and sets default timeout to 15 seconds (helpful for CI runs). It also registers ts-node so that you can run tests written in typescript without compiling them first

For packages that are intended for the browser use the following configuration file

// file:<package>/.mocharc.js
module.exports = require('@mongodb-js/mocha-config-compass/react');

This configuration extends on the general-purpose one, but also adds jsdom to the environment and registers chai-dom helpers (if you don't have chai-dom types installed already you should add them with npm i -D @types/chai-dom)

Readme

Keywords

none

Package Sidebar

Install

npm i @mongodb-js/mocha-config-compass

Weekly Downloads

35

Version

1.3.8

License

SSPL

Unpacked Size

42.6 kB

Total Files

16

Last publish

Collaborators

  • orechova
  • himanshusinghs
  • c-buckingham
  • mongo-j
  • mabaasit
  • alexander_schroll
  • chuck.kalmanek
  • mongodb-js-user
  • rueckstiess
  • durran
  • lerouxb
  • fredtruman
  • mbroadst
  • hswolff
  • satyasinha
  • matt_d_rat
  • rhysm
  • tomhollander
  • alena.khineika
  • jeff-allen-mongo
  • mmarcon
  • jonathan.balsano
  • mongodb-build
  • jack.weir
  • stennie
  • mcasimir
  • kristina.stefano
  • jarjee
  • shaketbaby
  • devtoolsbot
  • addaleax
  • gribnoysup
  • mutukrish