Skip to content

Commit 2e098be

Browse files
authored
Use correct structure for lighthouseConfig (#221)
1 parent f66f2bc commit 2e098be

File tree

1 file changed

+3
-2
lines changed
  • packages/documentation/docs/guides/lighthouse

1 file changed

+3
-2
lines changed

packages/documentation/docs/guides/lighthouse/reports.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ const lighthouseOptions = {
3838
};
3939

4040
const lighthouseConfig = {
41-
output: "html", //If output is not specified, then the json report will be generated
42-
/* ... your lighthouse configs */
41+
settings: { output: "html" },
42+
extends: "lighthouse:default",
43+
/* ... Alternatively, you could set your own lighthouse config */
4344
};
4445

4546
cy.lighthouse(thresholds, lighthouseOptions, lighthouseConfig);

0 commit comments

Comments
 (0)