Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/.license-checker.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"Unlicense",
"0BSD",
"Python-2.0",
"BlueOak-1.0.0"
"BlueOak-1.0.0",
"MPL-2.0"
]
}
18 changes: 13 additions & 5 deletions frontend/bundlewatch.config.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
14 changes: 11 additions & 3 deletions frontend/scripts/run-e2e-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down