Skip to content

Lest - v3.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 27 Dec 19:13
· 3 commits to master since this release
c0f015c

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