Skip to content

3.1.0

Compare
Choose a tag to compare
@kingjan1999 kingjan1999 released this 29 Jul 18:16
· 126 commits to master since this release
e5d7aa1

Features

  • We switched the library for synchronous promises from jest-mock-promise to synchronous-promise. This offers us:
    • Support for finally (#35)
    • Better handling of .catch (#17)

(Breaking) Changes

  • You can no longer pass the return value of then and catch to lastPromiseGet. This was an undocumented feature. Use the promise directly instead.
  • The error object used for mockError is now passed directly to catch / reject instead of being cloned beforehand (#14)