/pound-foolish

very tiny test runner and matcher

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

pound-foolish

  • concise methods: it and expect totally.
  • support ESM.
  • really low light: pound-foolish (3.84kb), jest (4.74kb)

A name comes from "penny-wise" of "It".

install

yarn add -D pound-foolish

or

npm i -D pound-foolish

use case

import { it, expect } from 'pound-foolish';

const sum = (first, second) => {
    return first + second;
}

it('sum should plus both numbers', () => {
    const result  = sum(1,2);
    expect(result).toBe(3);
})