Lakitna / Rulebound

A flexible framework for rule-based testing

Home Page:https://www.npmjs.com/package/rulebound

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce data attached to thrown RuleErrors

Lakitna opened this issue · comments

Rules are a great way of code-based documentation. Right now the sheer amount data on a thrown error is overwhelming to the point where the documentation goal gets lost.

The description is no longer a styled part of the message. It's now a parameter instead.

This makes it less fancy, but more flexible.

The rule is also no longer a param on the error, reducing the amount of data logged when thrown.

Will be released in v2.0.0