Skip to content

Commit

Permalink
Fix testing scripts
Browse files Browse the repository at this point in the history
I forgot to build the site before starting the dev server and somehow serve still responded with a 200, so playwright just timed out
  • Loading branch information
robinmetral committed Aug 8, 2024
1 parent 5f79e6a commit 8101163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"www"
],
"scripts": {
"test": "npm -w www run ci",
"test": "npm -w www run test",
"release": "npm -w brut publish"
}
}
5 changes: 2 additions & 3 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"type": "module",
"scripts": {
"build": "brut",
"start": "serve -l 3000 dist",
"test": "npx playwright test --browser=all",
"ci": "start-server-and-test http://localhost:3000"
"start": "npm run build && serve -l 3000 --no-request-logging dist",
"test": "start-server-and-test start http://localhost:3000 'npx playwright test --browser=all'"
},
"devDependencies": {
"@playwright/test": "^1.46.0",
Expand Down

0 comments on commit 8101163

Please sign in to comment.