1.0.0 • Published 4 years ago

@slimio/unit-testing v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

unit-testing

version Maintenance MIT

Simple, secure and blazing fast Unit testing framework with no assert lib.

Requirements

Goals

  • Avoid fancy and useless features.
  • No bundled assertion framework (chose what you want).
  • The best startup across packages.
  • Synchronous and Asynchronous Unit-testing (with Worker threads API).
  • Keep it simple and secure as hell.

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i @slimio/unit-testing
# or
$ yarn add @slimio/unit-testing

Usage example

import test from "@slimio/unit-testing";
import { strict as assert } from "assert";

test.before = function before() {
    console.log("before");
};

test("plan 1 must be ok", (curr) => {
    curr.plan(1);
    curr.pass();
});

test("true must be false", () => {
    assert.equal(true, false, "expect true to be strict equal to false");
});

API

TBC

Dependencies

NameRefactoringSecurity RiskUsage
@slimio/isMinorLowType checker
@slimio/pretty-stackMinorHighTBC
kleurMinorLowTTY color

License

MIT