From 089a220c1013125f6d56a0a09f4c73fd30124d40 Mon Sep 17 00:00:00 2001 From: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Date: Thu, 28 Nov 2024 22:02:24 +0100 Subject: [PATCH] Fix JS regression from 32656 Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com> --- web_src/js/utils/testhelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/utils/testhelper.ts b/web_src/js/utils/testhelper.ts index e91cf85e864bc..ed3c1e51e0b4d 100644 --- a/web_src/js/utils/testhelper.ts +++ b/web_src/js/utils/testhelper.ts @@ -2,5 +2,5 @@ // even if backend is in testing mode, frontend could be complied in production mode // so this function only checks if the frontend is in unit testing mode (usually from *.test.ts files) export function isInFrontendUnitTest() { - return process.env.TEST === 'true'; + return process && process.env.TEST === 'true'; }