1.0.5 • Published 1 year ago

retset v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

retset

if you run node > 19 use node:test

  • super simple (stupid) test runner using node's built-in assert module
  • no dependencies
  • almost no code
  • use ava for heavier testing
npm i -D retset
import test from 'retset'

// default assertion: strictEqual
test('the function returns what we expect', theFunction(), 'what we expect')

// use any assert method: https://nodejs.org/api/assert.html
test.notStrictEqual('numbers are not strings', 123, '123')

// async
test.deepEqual('response', fetchApi(), expectedObject)

// reminder for later
test.skip('compare apples to oranges')

// commentary
test('3 === 3', 3, 3, 'three is the magic number')

// tidy console output
test.group('level-1')
test.label('level-2')

screenshot

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago