Skip to content

Commit

Permalink
chore: throw error only when not in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Nov 20, 2024
1 parent d3c15a5 commit 07e762f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const GCS_BUCKET_NAME = process.env.GCS_BUCKET_NAME!;

export const GOOGLE_MAPS_API_KEY = process.env.GOOGLE_MAPS_API_KEY!;

if (!GOOGLE_MAPS_API_KEY) {
if (!GOOGLE_MAPS_API_KEY && process.env.NODE_ENV !== "test") {
throw new Error("Missing Google Maps API Key");
}

Expand Down

0 comments on commit 07e762f

Please sign in to comment.