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

@fatso83/mini-mocha

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fatso83/mini-mocha

A minimal emulation of Mocha

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

mini-mocha

A absolutely minimal emulation of Mocha for demos

Why

Makes it easier to demo bugs on RunKit when I don't need to make it from scratch all the time.

Typical usage

require('@fatso83/mini-mocha');

describe("issue #101 ES5 version", function() {
    it("normal sync test", function() {
        // passes
    });

    it("failing test", function() {
        throw new Error("My error");
    });
});

Results in this being printed

before
before each
issue #101 ES5 version: normal sync test: ✔️
after each
before each
issue #101 ES5 version: failing test: ❌. My error
after each
This operation is unsupported: async/callback testing
after

Known limitations

  • No async support
  • No Promsie support
  • No support for Mocha internals

Pull requests welcome :)

Keywords

FAQs

Package last updated on 06 Mar 2019

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