-
Notifications
You must be signed in to change notification settings - Fork 6
/
unlighthouse.config.ts
40 lines (39 loc) · 1.05 KB
/
unlighthouse.config.ts
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
37
38
39
40
import { defineConfig } from 'unlighthouse';
export default defineConfig({
ci: {
budget: {
// performance: 90,
accessibility: 90,
'best-practices': 90,
seo: 90,
},
},
debug: true,
// hooks: {
// async authenticate(page) {
// // login to the page
// await page.goto('http://some-auth-provider');
// const emailInput = await page.$('input[type="text"]');
// await emailInput?.type('some-user');
// const passwordInput = await page.$('input[type="password"]');
// await passwordInput?.type('some-password');
// await Promise.all([
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
// page.$eval('#login-form', (form: any) => form.submit()),
// page.waitForNavigation(),
// ]);
// },
// },
puppeteerClusterOptions: {
maxConcurrency: 1,
},
puppeteerOptions: {
// headless: false,
// slowMo: 50,
},
scanner: {
device: 'desktop',
skipJavascript: false,
},
site: 'https://metrostar.github.io/comet-starter',
});