Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.01 KB

exami

⚡ Ultra lean test framework for browser and node.

Version License: MIT Build Status Badge size

npm: npm i exami

cdn: https://cdn.jsdelivr.net/npm/exami/+esm


Example

import { describe, runSuite, printTap } from "./index";

const suite = describe("My first test suite", ({ test }) => {
  test("my test1", ({ expect }) => {
    expect(4).toBe(4);
  });

  test("my test2", ({ expect }) => {
    expect(4).toBe(4);
  });
});

runSuite(suite).then((results) => {
  // console.log(results);
  console.log(printTap(results));
});