This library provides a mapping layer allowing assertions using Jest
API to execute via Unexpected and leverage it's output capabilities.
Jest-Unexpected aims to be a drop-in such that using it within an existing test
suite is as simple as
npm install jest-unexpected and adding a require:
const expect = ;;
Almost the entirety of Jest
expect API in implemented with only the following
missing methods which the library will highlight during execution (an exception
will be thrown with a clear message indicating the method name):
- snapshot related functionality
- extension related functionality
This library supports and is tested against node version 4 and above.