From 3bca290e09da2f8fdfecf4b83a8d2e4945affd2b Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Wed, 27 May 2026 13:54:12 -0400 Subject: [PATCH] =?UTF-8?q?fix(mam-api):=20test=20glob=20=E2=80=94=20use?= =?UTF-8?q?=20find=20so=20npm=20test=20picks=20up=20files=20at=20any=20dep?= =?UTF-8?q?th?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /bin/sh (which npm uses) doesn't expand ** recursively. Task 1's smoke test under test/ stopped being discovered once Task 3 added tests under test/auth/. find + sort keeps depth-agnostic discovery portable across shells. --- services/mam-api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mam-api/package.json b/services/mam-api/package.json index e55dedd..04101d1 100644 --- a/services/mam-api/package.json +++ b/services/mam-api/package.json @@ -7,7 +7,7 @@ "scripts": { "start": "node src/index.js", "dev": "node --watch src/index.js", - "test": "node --test test/**/*.test.js" + "test": "node --test $(find test -name '*.test.js' | sort)" }, "dependencies": { "express": "^4.18.2",