Cypress.R(amda)
Advent day 1: How to load any library and make it available in all specs
Do you like the bundled libraries in Cypress global object, like Cypress._, Cypress.Promise, Cypress.$, etc? Are you missing Cypress.moment that was removed? This short video teaches you how to load Ramda library (my fav) and make it available in every spec under the Cypress.R property.
(TL;DR)
// cypress/support/index.jsimport * as R from ‘ramda’Cypress.R = R// from any spec file use Cypress.R.* functions
