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

0.0.2 • Public • Published

@cankode/tester

wip

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

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

describe('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.

/@cankode/test-event-bus/

    Package Sidebar

    Install

    npm i @cankode/test-event-bus

    Weekly Downloads

    0

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    2.38 kB

    Total Files

    4

    Last publish

    Collaborators

    • anderscan