From dfd538751007387d53811e7528669efe3d08f2aa Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 9 Feb 2022 09:13:09 -0700 Subject: [PATCH] fix: update isProd utility --- 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 ?? '') }