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 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "@fatso83/mini-mocha",
"version": "1.0.2",
"version": "1.0.3",
"description": "A minimal emulation of Mocha",

@@ -5,0 +5,0 @@ "main": "index.js",

# mini-mocha
> A absolutely minimal emulation of Mocha for demos
> An absolutely minimal emulation of Mocha for demos.
## Why
Makes it easier to [demo bugs on RunKit](https://runkit.com/fatso83/sinon-test-issue-101) when I don't need to make it from scratch all the time.
This was hacked together very quickly for demo purposes, making it possible to verify bugs on the Sinon issue tracker
without having access to a development environment. Having an API emulation of Mocha makes it easier to [demo bugs on RunKit](https://runkit.com/fatso83/sinon-test-issue-101) when I see a verification test using Mocha or Jasmine, as I can just copy-paste the test into RunKit, add `require('@fatso83/mini-mocha')` at the top and it will run!

@@ -25,18 +26,12 @@ ## Typical usage

```
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
There are bits and pieces missing, most notably:
- No async support (by passing a callback or returning a promise)
- No support for Mocha internals like `this.title`, `this.fullTitle()`, etc.
## Pull requests welcome :)
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