fix: love when the results are based on runtime :thonking:

This commit is contained in:
Kevin
2025-07-03 14:39:32 -05:00
parent 07d899e884
commit 66970d674d

View File

@ -18,12 +18,14 @@ describe('@src/env', () => {
PROD: undefined, PROD: undefined,
TEST: 'true', TEST: 'true',
DEV: '1', DEV: '1',
CI: undefined, CI: 'true',
} }
const actual = env() const actual = env()
expect(typeof actual.VITE_KITTYCAD_API_TOKEN).toBe('string') expect(typeof actual.VITE_KITTYCAD_API_TOKEN).toBe('string')
//@ts-ignore I do not want this token in our logs for any reason. //@ts-ignore I do not want this token in our logs for any reason.
actual.VITE_KITTYCAD_API_TOKEN = 'redacted' actual.VITE_KITTYCAD_API_TOKEN = 'redacted'
//@ts-ignore need to hard code this for localhost and CI
actual.CI = 'true'
expect(actual).toStrictEqual(expected) expect(actual).toStrictEqual(expected)
}) })
}) })