File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113
114114| Metric | Target |
115115| --------| --------|
116- | Performance | ≥ 95 |
116+ | Performance | ≥ 80 |
117117| Accessibility | ≥ 95 |
118- | Best Practices | ≥ 95 |
118+ | Best Practices | ≥ 90 |
119119| SEO | 100 |
120120
121121---
Original file line number Diff line number Diff line change @@ -35,17 +35,18 @@ async function main() {
3535 let failed = false ;
3636
3737 const thresholds = {
38- performance : 95 ,
38+ performance : 80 ,
3939 accessibility : 95 ,
40- 'best-practices' : 95 ,
40+ 'best-practices' : 90 ,
4141 seo : 100 ,
4242 } ;
4343
4444 for ( const [ key , cat ] of Object . entries ( categories ) ) {
45+ if ( ! thresholds [ key ] ) continue ;
4546 const score = Math . round ( cat . score * 100 ) ;
4647 const threshold = thresholds [ key ] ;
47- const status = threshold && score < threshold ? '❌ FAIL' : '✅ PASS' ;
48- if ( threshold && score < threshold ) failed = true ;
48+ const status = score < threshold ? '❌ FAIL' : '✅ PASS' ;
49+ if ( score < threshold ) failed = true ;
4950 scores [ key ] = score ;
5051 console . log ( `${ status } ${ cat . title } : ${ score } /100` ) ;
5152 }
You can’t perform that action at this time.
0 commit comments