From d504f1c782a952a8067b299a0f63e937f354a402 Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Tue, 1 Mar 2022 19:36:58 -0500 Subject: [PATCH] feat(enums): `AppEnv.CI` --- src/enums/app-env.enum.ts | 1 + src/guards/__tests__/is-app-env.guard.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/enums/app-env.enum.ts b/src/enums/app-env.enum.ts index 469b521a..c1f7a617 100644 --- a/src/enums/app-env.enum.ts +++ b/src/enums/app-env.enum.ts @@ -9,6 +9,7 @@ * @enum {Lowercase} */ enum AppEnv { + CI = 'ci', DEV = 'development', PROD = 'production', STG = 'staging', diff --git a/src/guards/__tests__/is-app-env.guard.spec.ts b/src/guards/__tests__/is-app-env.guard.spec.ts index 80341397..c4081648 100644 --- a/src/guards/__tests__/is-app-env.guard.spec.ts +++ b/src/guards/__tests__/is-app-env.guard.spec.ts @@ -13,6 +13,7 @@ describe('unit:guards/isAppEnv', () => { const cases: Case[] = [ { expected: false, state: 'keyof AppEnv', value: 'PROD' }, { expected: false, state: 'random string', value: 'some-random-string' }, + { expected: true, state: 'AppEnv.CI', value: AppEnv.CI }, { expected: true, state: 'AppEnv.DEV', value: AppEnv.DEV }, { expected: true, state: 'AppEnv.STG', value: AppEnv.STG }, { expected: true, state: 'AppEnv.PROD', value: AppEnv.PROD },