How To Test API Requests Using Promises
Too Long; Didn't Read
How To Test API Requests Using Promises is a tutorial on how to deal with API. This guide will help you deal with testing using babel and jest for testing. The tutorial is based on the use of the @babel/polyfill polyfill and the plugin-transform-runtime. The polyfill will emulate a full ES2015+ environment and is intended to be used in an application rather than a library/tool. In order to add the plugin, copy the following code on your babel file: "test"