From 4b7c79186fa724f4df123df8b7748a8dec187e9a Mon Sep 17 00:00:00 2001 From: sw-wayner Date: Thu, 18 Jan 2024 14:52:00 -0400 Subject: [PATCH] fix(e2e): global setup --- tests/lib/e2e/global-setup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/e2e/global-setup.ts b/tests/lib/e2e/global-setup.ts index 64202c74..2e56796c 100644 --- a/tests/lib/e2e/global-setup.ts +++ b/tests/lib/e2e/global-setup.ts @@ -37,7 +37,8 @@ export default async () => { throw new Error("For caution test database must include test in it's name"); } - const client = new MongoClient(url); + const baseUrl = new URL(url); + const client = new MongoClient(baseUrl.toString().replace(baseUrl.pathname, '')); await client.connect();