From cd9658f4e606c54301c3333f3410809ac01da8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20Fran=C3=A7ois?= Date: Thu, 16 Jan 2025 10:17:26 +0100 Subject: [PATCH] :wrench: chore(api) add a run only modified test task --- api/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/api/package.json b/api/package.json index 7ef5f814317..de74655e7b2 100644 --- a/api/package.json +++ b/api/package.json @@ -178,6 +178,7 @@ "test:api:watch": "NODE_ENV=test nodemon --exec 'mocha --recursive tests --reporter dot'", "test:api:bail": "npm run test:api:unit -- --bail && npm run test:api:integration -- --bail && npm run test:api:acceptance -- --bail", "test:lint": "npm test && npm run lint", + "test:api:watch": "git ls-files -m -- '*test.js' | xargs npm run test:api:path -- $1", "monitoring:arborescence": "node scripts/arborescence-monitoring/arborescence-monitoring.js", "monitoring:metrics": "node scripts/arborescence-monitoring/add-metrics-to-gist.js", "modulix:test": "npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'"