-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlighthouserc.js
More file actions
36 lines (34 loc) · 1.52 KB
/
lighthouserc.js
File metadata and controls
36 lines (34 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const { getOrigin } = require('./lighthouse/lighthouse-origin');
const serverUrl = getOrigin();
module.exports = {
ci: {
collect: {
url: [
`${serverUrl}/accountLists`,
`${serverUrl}/accountLists/08bb09d1-3b62-4690-9596-b625b8af4750`,
`${serverUrl}/accountLists/08bb09d1-3b62-4690-9596-b625b8af4750/contacts`,
`${serverUrl}/accountLists/08bb09d1-3b62-4690-9596-b625b8af4750/contacts/ef599ebf-4bb0-4c07-bd7d-6b1117340c29`,
`${serverUrl}/accountLists/08bb09d1-3b62-4690-9596-b625b8af4750/tasks`,
`${serverUrl}/accountLists/5721eaaf-4596-4412-ae68-ccdd291b804d/reports/donations`,
`${serverUrl}/accountLists/5721eaaf-4596-4412-ae68-ccdd291b804d/reports/partnerCurrency`,
`${serverUrl}/accountLists/5721eaaf-4596-4412-ae68-ccdd291b804d/reports/salaryCurrency`,
`${serverUrl}/accountLists/5721eaaf-4596-4412-ae68-ccdd291b804d/reports/designationAccounts`,
`${serverUrl}/accountLists/5721eaaf-4596-4412-ae68-ccdd291b804d/reports/partnerGivingAnalysis`,
`${serverUrl}/accountLists/5721eaaf-4596-4412-ae68-ccdd291b804d/reports/coaching`,
],
numberOfRuns: 7,
startServerCommand:
serverUrl === 'http://localhost:3000' ? 'yarn serve' : '',
puppeteerScript: 'lighthouse/lighthouse-auth.js',
puppeteerLaunchOptions: { defaultViewport: null },
headful: false,
settings: {
disableStorageReset: true,
preset: 'desktop',
},
},
upload: {
target: 'temporary-public-storage',
},
},
};