Socket
Book a DemoInstallSign in
Socket

mocha-nocache

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-nocache

Fork of mocha that resets require cache before loading each test file

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

This is a very simple fork of Mocha.

The main difference that this fork brings is to reset the require cache before requiring each test file. This lets you not worry about requires in different test files stomping over each other.

Todo: reset the global before running each test file, this way each test file will be truly isolated outside of modifying "this".

Keywords

mocha

FAQs

Package last updated on 26 Nov 2015

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