Objective: How do I display Cypress environment variables on the console?
Solution:
cy.log(Cypress.env()); // Error: Argument of type 'ObjectLike' is not assignable to parameter of type 'string'.ts(2345)
I am aware that I am unable to print it because cy.log()
requires a string
input and Cypress.env()
returns an Object. Is there another method I should consider for displaying it?