test(ui): add e2e and integration tests
This commit is contained in:
21
tests/performance/lighthouserc.js
Normal file
21
tests/performance/lighthouserc.js
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
numberOfRuns: 3,
|
||||
settings: {
|
||||
preset: 'desktop',
|
||||
},
|
||||
},
|
||||
assert: {
|
||||
assertions: {
|
||||
'categories:performance': ['warn', { minScore: 0.8 }],
|
||||
'categories:accessibility': ['error', { minScore: 0.9 }],
|
||||
'categories:best-practices': ['warn', { minScore: 0.8 }],
|
||||
'categories:seo': ['warn', { minScore: 0.8 }],
|
||||
},
|
||||
},
|
||||
upload: {
|
||||
target: 'temporary-public-storage',
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user