mirror of
https://github.com/LukasKanka/api_test.git
synced 2026-11-11 06:34:36 +01:00
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:
1 parent
72370c2f2f
commit
8a66fa2760
1 file changed
+2
-2
+2
-2
@@ -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": {
|
||||
|
||||
Reference in new issue
Block a user