From 6149b6636b8309b0b95bf6cc7224bdd5fc6fa15f Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Fri, 13 Dec 2024 13:49:08 -0800 Subject: [PATCH] [test] fix service bus unit test issue (#32215) The merged config pulls in unwanted integration tests. --- sdk/servicebus/perf-tests/service-bus/package.json | 4 ++-- sdk/servicebus/service-bus/vitest.unit.config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/perf-tests/service-bus/package.json b/sdk/servicebus/perf-tests/service-bus/package.json index fc3533733684..903288f11fc6 100644 --- a/sdk/servicebus/perf-tests/service-bus/package.json +++ b/sdk/servicebus/perf-tests/service-bus/package.json @@ -40,8 +40,8 @@ "test:browser": "echo skipped", "test:node": "echo skipped", "unit-test": "echo skipped", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", - "unit-test:node": "dev-tool run test:vitest", + "unit-test:browser": "echo skipped", + "unit-test:node": "echo skipped", "update-snippets": "echo skipped" }, "type": "module", diff --git a/sdk/servicebus/service-bus/vitest.unit.config.ts b/sdk/servicebus/service-bus/vitest.unit.config.ts index d396af4b0386..c3fd0e54d229 100644 --- a/sdk/servicebus/service-bus/vitest.unit.config.ts +++ b/sdk/servicebus/service-bus/vitest.unit.config.ts @@ -12,6 +12,7 @@ export default mergeConfig( hookTimeout: 60000, fileParallelism: false, include: ["test/internal/unit/**/*.spec.ts"], + exclude: ["test/internal/{,!(unit)/**/}*.spec.ts", "test/public/**/*.spec.ts"], fakeTimers: { toFake: [ "setTimeout",