-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create output report (html and json) doesn't work #223
Comments
I had this same problem, I had config: {
output: 'html'
} in my cypress.config.js and when I changed options: {
output: 'html'
} |
I'm also having this same issue as well. I tried even passing the args for lighthouse for the output and no luck. |
RESOLVED This PR, #221 , has made updates to the documentation for report generation. To implement the changes, please use the code snippet provided below:
Link to updated Doc: https://github.com/mfrachet/cypress-audit/blob/master/packages/documentation/docs/guides/lighthouse/reports.md I suggest updating this page as well: https://mfrachet.github.io/cypress-audit/guides/lighthouse/reports.html#generating-html-reports PS: I can confirm @hernikplays 's solution also works. |
If I would only check the issues section sooner. Just wasted a couple of days trying to figure out what I'm doing wrong.
I also like to add that I also had to replace |
What does not work?
When you run cy.lighthouse() everything works but no HTML or JSON report generates.
But as soon as I add config
config: { output: 'html' }
(as third arguments or in cypress config)The test fails and throws:
Hints:
How to reproduce?
OR
home.cy.js -> update cy.lighthouse
Environment:
The text was updated successfully, but these errors were encountered: