nefarious
Quick and easy testing library
Intro
nefarious
is an extremely simple testing library meant for inline use, no test-runner included.
Example (test file)
const test = ; const sleep = ; { await ; return b;} ;
Running this file directly will run the tests and print a report.
Example (inline testing)
const test = ; { return arr;} test; test; moduleexports = sum;
Simply running (or requiring) this file, won't run any tests. However, this:
const test = ;test;
Will run the tests. Basically, use test.suite
when you need to run multiple tests.
More features can be found in the examples directory.