When running Cypress headlessly, I can see console.log
output from the frontend code under test by using the DEBUG
environment variable, like:
DEBUG='cypress:launcher' npx cypress run --browser chrome
However, I haven't found any similar way to see the output of cy.log
from the Cypress test code when running headlessly. Even with DEBUG='cypress:*'
I don't see them - they only seem to be visible in the interactive interface. It feels like there must be some way to see the cy.log
output headlessly - can someone help with that?