From 3ae4f9352ee73a21581735883b4049327dce07bf Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Wed, 11 Dec 2019 09:40:22 -0500 Subject: Add Jest to handle unit and integration testing Wrote a couple of initial unit tests for some of the logic-heavy points in the application, being logger.ts and formats.ts. Evidently colorize() causes an error when transforming on the Format object that's returned. Since that is specific to the Console transport anyways, I just moved it to the transport, since the unit test was only testing the passed label in the returned Formats object. Also the bash template has some issues that I didn't test (oops), so those are fixed now. --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 4be62f1..fbcd166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Jest for handling tests +- Unit tests for color matcher in formats.ts, loggerConfig in logger.ts + +### Changed + +- Fixed issue with colorMatcher returning bad values for everything > stage2 +- `colorize()` and `printf()` formats apply specifically to console transport + ## [0.3.0] ### Added -- cgit