From c203d01732ccc71fc1babda836f70218c9320eb2 Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Fri, 5 Mar 2021 12:57:35 -0800 Subject: [PATCH] [Service Bus] Fix mocha glob pattern to pick tests correctly (#14127) Fixes https://github.com/Azure/azure-sdk-for-js/issues/13797 Reference - https://mochajs.org/#the-test-directory - https://stackoverflow.com/questions/35482278/mochas-glob-behaviour/36050601 --- sdk/servicebus/service-bus/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index b83bae17acd..65f236a1469 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -73,7 +73,7 @@ "test:node": "npm run clean && npm run build:test:node && npm run integration-test:node", "test": "npm run test:node && npm run test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 120000 --full-trace dist-esm/test/internal/unit/*.spec.js dist-esm/test/internal/node/*.spec.js", + "unit-test:node": "mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 120000 --full-trace \"dist-esm/test/internal/unit/*.spec.js\" \"dist-esm/test/internal/node/*.spec.js\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src" },