From f858e5d8bf8a0b10d44626093ee386c21b64707c Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Thu, 31 Aug 2023 13:14:43 -0400 Subject: [PATCH] chore: fix other tests that have env variable pollution --- packages/config/test/utils.spec.ts | 2 +- packages/server/test/unit/config_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/config/test/utils.spec.ts b/packages/config/test/utils.spec.ts index cd2f2293c45c..5392ffb4ef83 100644 --- a/packages/config/test/utils.spec.ts +++ b/packages/config/test/utils.spec.ts @@ -123,7 +123,7 @@ describe('config/src/utils', () => { const cypressEnvVar = projectUtils.getProcessEnvVars(process.env) const coercedCypressEnvVar = coerce(cypressEnvVar) - expect(coercedCypressEnvVar).to.have.keys('stringified_json') + expect(coercedCypressEnvVar).to.include.keys('stringified_json') expect(coercedCypressEnvVar['stringified_json']).to.deep.include([{ 'type': 'foo', 'value': 'bar' }, { 'type': 'fizz', 'value': 'buzz' }]) }) diff --git a/packages/server/test/unit/config_spec.js b/packages/server/test/unit/config_spec.js index 994239b4fc6c..f90cb076f161 100644 --- a/packages/server/test/unit/config_spec.js +++ b/packages/server/test/unit/config_spec.js @@ -50,7 +50,7 @@ describe('lib/config', () => { .then((obj) => { expect(obj.projectRoot).to.eq(this.projectRoot) - expect(obj.env).to.deep.eq({ foo: 'bar' }) + expect(obj.env).to.deep.include({ foo: 'bar' }) }) })