tiqed
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Tiqed

Tiqed provides utility functions for testing.

Usage


    import { tMo run it, qed } from 'tiqed';

    (() => {

        // describe modules
        tMo(testModuleA)

        // add only to run only this module
        tMo.only(testModuleB)

        // run tests
        run();
    })();


    function testModuleA() {

      it('logs this message');

      it('runs this callback', () => {

          qed('test deep equality', {}, {a: 3});

      });

      it.only('only run this', () => {});

      it('waits for promise', () => {
        return Promise.resolve();
        });

      it('fails if promise returns a value', () => {
        return Promise.resolve('fail');
      });

      it('fails if promise rejects', () => {
        return Promise.reject();
      });

    }

    function testModuleB() {}
    

/tiqed/

    Package Sidebar

    Install

    npm i tiqed

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    37.7 kB

    Total Files

    25

    Last publish

    Collaborators

    • eguneys