diff --git a/.github/workflows/accessibility-testing.yaml b/.github/workflows/accessibility-testing.yaml index fcef8a4a..273395d3 100644 --- a/.github/workflows/accessibility-testing.yaml +++ b/.github/workflows/accessibility-testing.yaml @@ -25,4 +25,4 @@ jobs: run: npm install -g @unlighthouse/cli puppeteer - name: Run Tests - run: unlighthouse-ci --config unlighthouse.config.ts --build-static --reporter jsonExpanded + run: unlighthouse-ci --config-file unlighthouse.config.ts --build-static --reporter jsonExpanded --debug diff --git a/package.json b/package.json index de6792f1..e01faf43 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "e2e:ci:run": "rm cypress/reports/* || true && npx cypress run --reporter mochawesome", "e2e:ci:report": "mochawesome-merge cypress/reports/*.json > cypress/reports/report.json && marge --reportDir cypress/reports cypress/reports/report.json", "e2e:format": "npx prettier cypress --write", - "a11y": "unlighthouse --config unlighthouse.config.ts", + "a11y": "unlighthouse --config-file unlighthouse.config.ts", "prepare": "husky install", "predeploy": "vite build --base=/comet-starter/", "deploy": "gh-pages -d dist" @@ -96,7 +96,6 @@ "@rollup/rollup-linux-x64-gnu": "4.12.0" }, "overrides": { - "ip": "2.0.1", "xml2js": "0.6.2" } } diff --git a/unlighthouse.config.ts b/unlighthouse.config.ts index e4bf9c0c..0003e970 100644 --- a/unlighthouse.config.ts +++ b/unlighthouse.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'unlighthouse'; export default defineConfig({ ci: { budget: { - performance: 90, + performance: 80, accessibility: 90, 'best-practices': 90, seo: 90, @@ -32,9 +32,11 @@ export default defineConfig({ // headless: false, // slowMo: 50, }, + routerPrefix: '/comet-starter', scanner: { device: 'desktop', skipJavascript: false, }, - site: 'https://metrostar.github.io/comet-starter/', + site: 'https://metrostar.github.io', + urls: ['/comet-starter'], });