@@ -4,24 +4,9 @@ const lighthouse = require('lighthouse').default;
44
55const logger = require ( './logger' ) ;
66const { resolveProfileSettings } = require ( './profiles' ) ;
7+ const { SKIPPABLE_AUDITS } = require ( './prompts' ) ;
78const { ensureCommandDir, buildFilename } = require ( './utils' ) ;
89
9- // All audits available for skipping in interactive prompt
10- const SKIPPABLE_AUDITS = [
11- { id : 'full-page-screenshot' , label : 'Full-page screenshot capture' , defaultSkip : true } ,
12- { id : 'screenshot-thumbnails' , label : 'Filmstrip thumbnail screenshots' , defaultSkip : true } ,
13- { id : 'final-screenshot' , label : 'Final rendered state screenshot' , defaultSkip : true } ,
14- { id : 'valid-source-maps' , label : 'Source map validation check' , defaultSkip : true } ,
15- { id : 'script-treemap-data' , label : 'JS treemap/bundle data (often the largest audit)' , defaultSkip : false } ,
16- { id : 'network-requests' , label : 'Full network request log' , defaultSkip : false } ,
17- { id : 'main-thread-tasks' , label : 'Detailed main-thread task breakdown' , defaultSkip : false } ,
18- { id : 'third-party-summary' , label : 'Third-party resource analysis' , defaultSkip : false } ,
19- { id : 'layout-shifts' , label : 'Individual CLS shift elements' , defaultSkip : false } ,
20- { id : 'long-tasks' , label : 'Long main-thread tasks list' , defaultSkip : false } ,
21- { id : 'bf-cache' , label : 'Back/forward cache eligibility' , defaultSkip : false } ,
22- { id : 'resource-summary' , label : 'Resource count and size summary' , defaultSkip : false } ,
23- ] ;
24-
2510// Audits skipped by default — derived from SKIPPABLE_AUDITS to avoid duplication
2611const DEFAULT_SKIP_AUDITS = SKIPPABLE_AUDITS . filter ( ( a ) => a . defaultSkip ) . map ( ( a ) => a . id ) ;
2712
@@ -91,4 +76,4 @@ async function runLab(url, labOptions = {}) {
9176 }
9277}
9378
94- module . exports = { runLab, CHROME_FLAGS , DEFAULT_SKIP_AUDITS , SKIPPABLE_AUDITS } ;
79+ module . exports = { runLab, CHROME_FLAGS , DEFAULT_SKIP_AUDITS } ;
0 commit comments