A collection of jest tests to explore and demonstrate the behaviors within promise chains.
I wasn't satisfied with the explanations and examples of the more complex promise chain behavior in the various documentation I was finding so I made this project to test my intuitions on behaviors like:
- .then() blocks after .catch() blocks
- .finally() blocks
- throw() behavior
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
https://2ality.com/2017/08/promise-callback-data-flow.html
OS X:
- install node and NPM
- download/clone this repository
- install dependencies:
npm install
- To run the test suite:
npm test
coming soon...
coming soon...
coming soon...
coming soon...
Made with contributors-img.