From 6f29fa274e840712a416bd44f1c44461e09f1e38 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Tue, 28 Jul 2020 13:01:28 +0200 Subject: [PATCH] Throw error if API_URI is not set --- testUtils/api.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testUtils/api.ts b/testUtils/api.ts index 58badce16..9e5cf72ca 100644 --- a/testUtils/api.ts +++ b/testUtils/api.ts @@ -12,6 +12,10 @@ Polly.register(NodeHttpAdapter); Polly.register(FSPersister); function setupApi() { + if (!process.env.API_URI) { + throw new Error("Environment variable API_URI not set"); + } + setupPolly({ adapters: ["node-http"], persister: "fs",