Skip to content

Commit

Permalink
chore: fix other tests that have env variable pollution
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Aug 31, 2023
1 parent d649b76 commit f858e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/config/test/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }])
})

Expand Down
2 changes: 1 addition & 1 deletion packages/server/test/unit/config_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
})
})

Expand Down

0 comments on commit f858e5d

Please sign in to comment.