v5.1.0
Release date: 2021-01-14
This release includes a lot of contributions (4 new contributors!), and several refactorings to continue improving the quality of the tool.
Added
- [feature] added after() hook to run code after each test, thank you @adico1!
- [feature] isIncludedIn() and isNotIncludedIn() assertions, thank you @ask-imran for your first contribution!
- [feature] warning message when no tests found, thank you @niyonx for your first contribution!
- [feature] show error when a requested file does not exist, thank you @chelsieng for your first contribution!
- [feature] global error handler
Fixed
- [bug] suite and test names cannot be empty, thank you @ask-imran!
- [bug] includes() and doesNotInclude() matchers only work on Arrays, thank you @trochepablo for your first contribution!
- [bug] color for pending summary was not painted
- [bug] it was possible to mark tests as pending without specifying reason
Refactored
- rename "master" branch to "main"; also, an ADR was added to track the decision that we want a better vocabulary
- parametrizable i18n messages
- write more tests for the i18n module
- throw error objects instead of strings
- speed up tests by not creating error messages on successful assertions
- added some npm scripts for test coverage and dependencies graph
- changes in modularization: extract assertion and test result reporter
- add more tests and increased the current coverage (example 1, example 2)
- formatter object decoupled from console ui (ADR 0004 added here)
- avoid test doubles at all (ADR 0005 added here), removed test runner double
... and more minor cleanups.