Skip to content

Commit

Permalink
fix(e2e): global setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-wayner committed Jan 18, 2024
1 parent 90b9a86 commit 4b7c791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lib/e2e/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 4b7c791

Please sign in to comment.