From 3ba14210175c7161f877082e22347232b54e1b2f Mon Sep 17 00:00:00 2001 From: DarkSky Date: Tue, 29 Oct 2024 19:46:55 +0800 Subject: [PATCH] fix: skip test if env not set --- packages/backend/server/tests/copilot-provider.e2e.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/server/tests/copilot-provider.e2e.ts b/packages/backend/server/tests/copilot-provider.e2e.ts index b1d5ccea9845..8eba00cfb47a 100644 --- a/packages/backend/server/tests/copilot-provider.e2e.ts +++ b/packages/backend/server/tests/copilot-provider.e2e.ts @@ -58,6 +58,9 @@ const runIfCopilotConfigured = test.macro( ) => { if (isCopilotConfigured) { await callback(t); + } else { + t.log('Skip test because copilot is not configured'); + t.pass(); } } );