diff --git a/package-lock.json b/package-lock.json index 367aa8c..a4d4a09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18232,7 +18232,7 @@ }, "packages/lest": { "name": "@taservers/lest", - "version": "3.0.0", + "version": "3.1.0", "license": "MIT", "dependencies": { "lookpath": "^1.2.2", diff --git a/packages/lest/CHANGELOG.md b/packages/lest/CHANGELOG.md index d6de439..6b3a94c 100644 --- a/packages/lest/CHANGELOG.md +++ b/packages/lest/CHANGELOG.md @@ -14,6 +14,20 @@ The valid change types are: - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [3.1.0] - [#113](https://github.com/TAServers/lest/pull/113) + +### Added + +- Added pretty diff rendering to `toEqual` matcher to show differences between deeply nested values + +### Changed + +- `toBe` matcher now generates its message more in line with Jest to make comparing values easier +- All values displayed in test failure messages are now properly serialised to mostly valid Lua, including the contents of tables +- Test failure messages no longer include the expected and received values in the `expect(...).matcherName(...)` signature + - This matches the behaviour of Jest and avoids duplicating information between the signature and failure message +- Test failure messages are no longer highlighted in red to give more control to matchers over how individual messages are formatted + ## [3.0.0] - [#102](https://github.com/TAServers/lest/issues/102) ### Added diff --git a/packages/lest/package.json b/packages/lest/package.json index 62a3a17..654d6ab 100644 --- a/packages/lest/package.json +++ b/packages/lest/package.json @@ -1,6 +1,6 @@ { "name": "@taservers/lest", - "version": "3.0.0", + "version": "3.1.0", "license": "MIT", "description": "Painless Lua testing.", "homepage": "https://taservers.github.io/lest/",