a simple test kit
Find a file
2025-03-26 20:52:02 -05:00
src add object handling for assertEq 2025-03-26 20:52:02 -05:00
package.json add readme and package.json 2025-03-26 20:00:44 -05:00
README.md add readme and package.json 2025-03-26 20:00:44 -05:00

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')
 * }
 */