# test-utils-lib

> This is a small library with a small set of functions for making quick tests in your code.

Latest version **1.0.0** (published 2021-12-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install test-utils-lib
pnpm add test-utils-lib
yarn add test-utils-lib
bun add test-utils-lib
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-12-31 |
| First published | 2021-12-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gilbert Ssenyonjo |
| Maintainers | gilberts |

## Links

- npm: https://www.npmjs.com/package/test-utils-lib
- Repository: https://github.com/rsgilbert/refactoring
- Homepage: https://github.com/rsgilbert/refactoring#readme
- Issues: https://github.com/rsgilbert/refactoring/issues
- npm.io page: https://npm.io/package/test-utils-lib

## Recent versions

- 1.0.0 (latest) — 2021-12-31

## README

# TEST UTILS

This is a small library with a small set of functions for making quick tests 
in your code. 

Unlike test frameworks like jest, this library's methods can be called from within your existing development code. 
This means that you don't have to create separate test files. You can put your tests right next to the code being tested.

Below is an example of usage:
```javascript
test.test(function personTest() {
    const p = new Person({ firstName: 'Mark', lastName: 'Jane' });
    test.testEqual(p.lastName, 'Jane');
    p.lastName = 'Tim'
    test.testNotEqual(p.lastName, 'Tim');
    test.testEqual(p.lastName, 'Jane');
});
test.summarize();
```

The library prides itself for being very small with no use of third party libraries and being very easy to understand and modify.

---
_Source: https://npm.io/package/test-utils-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
