From 0fed9e1263265b8c34a1fd4f83ebffc199eb2c09 Mon Sep 17 00:00:00 2001 From: Ben Mitchinson Date: Mon, 30 Mar 2020 16:53:39 -0500 Subject: [PATCH] ignore env get in coverage --- pwa/src/hooks/useApi.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pwa/src/hooks/useApi.tsx b/pwa/src/hooks/useApi.tsx index 5038dbd..50eb0cd 100644 --- a/pwa/src/hooks/useApi.tsx +++ b/pwa/src/hooks/useApi.tsx @@ -5,6 +5,7 @@ const useApi = (route: string) => { const [error, setError] = React.useState(null); const [isLoading, setIsLoading] = React.useState(false); + /* istanbul ignore next */ const getUrl = () => { if (process.env.environment === "docker"){ return "http://api:4000/"