From 0af0097779f1215b208ae27951709bc2f9e53d73 Mon Sep 17 00:00:00 2001 From: Tor Idland Date: Wed, 28 Feb 2024 10:53:30 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20isMock=20skal=20v=C3=A6re=20true=20hvis?= =?UTF-8?q?=20FUNCTIONAL=5FTESTS=20er=20enabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/environments.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/environments.ts b/utils/environments.ts index ff649966..51b09393 100644 --- a/utils/environments.ts +++ b/utils/environments.ts @@ -1,6 +1,7 @@ const MOCK_ENVIRONMENTS = ['localhost']; -export const isMock = () => MOCK_ENVIRONMENTS.includes(process.env.RUNTIME_ENVIRONMENT ?? ''); +export const isMock = () => + MOCK_ENVIRONMENTS.includes(process.env.RUNTIME_ENVIRONMENT ?? '') || isFunctionalTest(); export const isFunctionalTest = () => process.env.FUNCTIONAL_TESTS === 'enabled';