From 8a66fa27601d944779db4751e175e075681dbac7 Mon Sep 17 00:00:00 2001 From: kankys Date: Tue, 15 Sep 2026 21:57:01 +0200 Subject: [PATCH] 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 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2d06490..5b3097e 100644 --- a/package.json +++ b/package.json @@ -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": {