From a58315dc401071675c0f1b08a7ab82c35846ce6d Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 9 Feb 2022 09:36:48 -0700 Subject: [PATCH] fix: update isProd utility (#368) --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 3d97d404b..cfc4e7f36 100644 --- a/src/util.ts +++ b/src/util.ts @@ -37,5 +37,5 @@ export function castArray(input?: T | T[]): T[] { } export function isProd() { - return process.env.NODE_ENV !== 'development' + return !['development', 'test'].includes(process.env.NODE_ENV ?? '') }