1.0.0 • Published 6 years ago
@kibibit/jest-utils v1.0.0
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
1.0.0-next.3
6 years ago
1.0.0
6 years ago
1.0.0-next.2
6 years ago
1.0.0-next.1
6 years ago
0.0.0-development
6 years ago