@fatso83/mini-mocha
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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 :) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3642
37