diff --git a/frontend/.license-checker.json b/frontend/.license-checker.json index dfaaf39..225ce7e 100644 --- a/frontend/.license-checker.json +++ b/frontend/.license-checker.json @@ -13,6 +13,7 @@ "Unlicense", "0BSD", "Python-2.0", - "BlueOak-1.0.0" + "BlueOak-1.0.0", + "MPL-2.0" ] } diff --git a/frontend/bundlewatch.config.json b/frontend/bundlewatch.config.json index e12c5f7..a3f14f5 100644 --- a/frontend/bundlewatch.config.json +++ b/frontend/bundlewatch.config.json @@ -1,16 +1,24 @@ { "files": [ { - "path": ".next/static/chunks/vendor.js", - "maxSize": "250 kB" + "path": ".next/static/chunks/framework-*.js", + "maxSize": "50 kB" }, { - "path": ".next/static/chunks/main*.js", + "path": ".next/static/chunks/main-app-*.js", + "maxSize": "100 kB" + }, + { + "path": ".next/static/chunks/app/page-*.js", "maxSize": "150 kB" }, { - "path": ".next/static/chunks/pages/_app*.js", - "maxSize": "100 kB" + "path": ".next/static/chunks/app/markets/**/*.js", + "maxSize": "200 kB" + }, + { + "path": ".next/static/chunks/app/admin/**/*.js", + "maxSize": "200 kB" } ], "ci": { diff --git a/frontend/scripts/run-e2e-tests.js b/frontend/scripts/run-e2e-tests.js index 1931f88..6731476 100755 --- a/frontend/scripts/run-e2e-tests.js +++ b/frontend/scripts/run-e2e-tests.js @@ -31,9 +31,17 @@ console.log('CI Mode:', CI ? 'Yes' : 'No'); console.log(''); try { - // Run Playwright tests - const command = `npx playwright test ${CI ? '--reporter=github,html,json,junit' : ''}`; - + // Run Playwright tests. Built from `config` above so the printed + // "Configuration" actually reflects what gets invoked — it previously + // hardcoded `--reporter=github,html,json,junit` in CI and computed the + // rest for display only, with no effect on the command. + const flags = [ + `--reporter=${CI ? 'github,html,json,junit' : config.reporter}`, + `--retries=${config.retries}`, + config.workers ? `--workers=${config.workers}` : '', + ].filter(Boolean); + const command = `npx playwright test ${flags.join(' ')}`; + console.log(`Running: ${command}\n`); execSync(command, {