Fix env variable to avoid test failures

Signed-off-by: Paul Jonathan <pj@balena.io>
Change-type: patch
This commit is contained in:
toochevere 2021-08-25 16:58:32 +00:00
parent 7d568a928b
commit 972c2470c5

View File

@ -43,3 +43,7 @@ import { config as chaiCfg } from 'chai';
chaiCfg.showDiff = true;
// enable diff comparison of large objects / arrays
chaiCfg.truncateThreshold = 0;
// Because mocks are pointed at "production", we need to make sure this is set to prod.
// Otherwise if the user has BALENARC_BALENA_URL pointing at something else like staging, tests
// will fail.
process.env.BALENARC_BALENA_URL = 'balena-cloud.com';