ackchyually
v0.2.1
Published
TypeScript testing utility powered by Jest.
Downloads
12
Readme
ackchyually
A TypeScript testing utility powered by Jest.
Quickstart
Install
ackchyually
requiresjest
as a peer dependency.
yarn add ackchyually jest -D
Write tests
import assert from "ackchyually";
const isEven = (value: number): boolean => value % 2 === 0;
assert(
[
[0, true],
[1, false],
[2, true],
],
isEven.name,
isEven
);
Run tests
yarn test
Review test results
`isEven`
✓ Returns true for 0
✓ Returns false for 1
✓ Returns true for 2