fix: update test:all script to run from each collection root

- Dynamically find all collections in apiTest/
- cd into each collection directory before running tests
- Matches CI/CD pipeline behavior

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
kankys committed 2026-09-15 21:57:01 +02:00
1 parent 72370c2f2f
commit 8a66fa2760
1 file changed
+2 -2
+2 -2
View File
@@ -14,9 +14,9 @@
"start:backends": "cd backends/potter-api && npm start",
"start:potter-api": "cd backends/potter-api && npm start",
"start:potter-fe": "cd backends/potter-api/frontend && npm run serve",
"test:all": "cd apiTest && npx @usebruno/cli run PotterAPI -r",
"test:all": "for dir in $(find apiTest -mindepth 1 -maxdepth 1 -type d ! -name \"node_modules\" ! -name \".git\" | sort); do cd \"$dir\" && npx @usebruno/cli run -r && cd ../.. || exit 1; done",
"test:potter": "cd apiTest/PotterAPI && npx @usebruno/cli run -r",
"test:watch": "cd apiTest && npx @usebruno/cli run PotterAPI -r --watch",
"test:watch": "cd apiTest/PotterAPI && npx @usebruno/cli run -r --watch",
"lint": "echo \"Linting all workspaces\""
},
"devDependencies": {