paint-brush
How To Test API Requests Using Promisesby@Bren.21
429 reads
429 reads

How To Test API Requests Using Promises

by Brenda2mJuly 14th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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"
featured image - How To Test API Requests Using Promises
Brenda HackerNoon profile picture
Brenda

Brenda

@Bren.21

L O A D I N G
. . . comments & more!

About Author

Brenda HackerNoon profile picture
Brenda@Bren.21

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite