jest-expect
Make jest expect more convenient.
Install
This should only be installed as a development dependency (devDependencies
) as it is only designed for testing.
npm i --save-dev jest-expect
Setup
Add jest-extended to your Jest setupTestFrameworkScriptFile configuration. See for help
API
-
All api of jest-extended.
-
Additional Jest matchers of
jest-expect
. -
To be continue...
Number
toBeApproximate
Use toBeApproximate
to checkout if a value is approximately equal to a Number
.
;
License
MIT@hustcc.