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

@mongodb-js/mocha-config-devtools

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/mocha-config-devtools

Shared mocha mocha configuration for Devtools packages

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.2K
increased by29.86%
Maintainers
0
Weekly downloads
 
Created
Source

@mongodb-js/mocha-config-devtools

Shared mocha configuration for Devtools 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-devtools');

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-devtools/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)

FAQs

Package last updated on 02 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

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