1.0.0 • Published 6 years ago

@kibibit/jest-utils v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

WIP

Installation

Install the library by running

npm install --save-dev @kibibit/jest-utils

In your Jest configuration, add @kibibit/jest-utils's setup file

module.exports = {
  // ...
  setupFiles: [ 'node_modules/@kibibit/jest-utils/lib/jest-utils.js' ],
  // ...
};

Usage

const funcToTest = (a: number, b: number) => a + b;

describe("Test Suite: funcToTest", () => {
  assertTruthy('this ran with assertTruthy', funcToTest, 5, 3);

  test("another test", () => {
    // ...
  });
});

Defined functions

Currently, assertTruthy is defined as an example for stackoverflow