Javascript

How To Write End-to-End Tests in Node.js Using Puppeteer and Jest — step-by-step Javascript tutorial on Progressive Robot

How To Write End-to-End Tests in Node.js Using Puppeteer and Jest

End-to-end testing (e2e for short) is a process in which the entire lifecycle of an application is tested from a user’s perspective in a production-like scenario. In this tutorial, you will write an e2e test in Node.js that validates that the account creation and login features of a sample web page, using Puppeteer to crawl the site and Jest to make unit tests.

Read more
JavaScript Functional Programming Explained: Partial Application and Currying — step-by-step Javascript tutorial on Progressive Robot

JavaScript Functional Programming Explained: Partial Application and Currying

Two important ideas in JavaScript with roots in functional thought are currying, which transforms a function of multiple arguments into a series of function calls, and partial application, which fixes the value of some of a function’s arguments without fully evaluating the function. In this article, you will use partial application to fix arguments to a function, curry functions to facilitate partial application, and design functions that facilitate partial application.

Read more
CHAT