563 B
563 B
folktest
a simple test kit for myself and anyone else who doesn't feel like using jest or mocha or carrot or whatever the fuck its called
Usage
import { it, assert } from 'folktest'
const test = it('should pass', () => {
assert(true)
})
test()
/* {
* success: true,
* description: 'should pass',
* error: undefined
* }
*/
const err = it('should error', () => {
assert(false)
})
err()
/* {
* success: false,
* description: 'should error',
* error: AssertionError('assertion error: false is not true')
* }
*/