a simple test kit
Find a file
2025-04-09 18:44:40 -05:00
src remove test code (tests for test) 2025-04-09 18:44:40 -05:00
package.json make into module 2025-03-29 06:01:15 -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')
 * }
 */