@cankode/tester
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@cankode/tester

wip

Write tests to be run via @cankode/test-runner-browser and/or @cankode/test-runner-node.

import { block, assert } from '@cankode/tester';

block('A', test => {
  test.describe('AA', test => {
    test.it('something is true', () => {
      assert(true === true);
    });
    test.it('something is false', () => {
      assert(true === false); // will fail
    });
  });
});

Note: built-in assert is dead-simple boolean asserter. Bring your own if you want something more powerfull.

Readme

Keywords

none

Package Sidebar

Install

npm i @cankode/tester

Weekly Downloads

3

Version

0.1.1

License

ISC

Unpacked Size

4.05 kB

Total Files

6

Last publish

Collaborators

  • anderscan