Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix: tests with CARLIN_ENVIRONMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
arantespp committed Jun 15, 2021
1 parent 51e5dbc commit a7979ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/src/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ const parse = async (arg: any, context: any) => {

describe('testing AWS region', () => {
test.each([
/**
* Sometimes `CARLIN_ENVIRONMENT` is defined, then `-e=undefined` is
* necessary.
*/
[`print-args -e=undefined`, AWS_DEFAULT_REGION],
[`print-args --region=${region}`, region],
[`print-args`, AWS_DEFAULT_REGION],
[`print-args --environment=Production`, region],
[
`print-args -e=OtherRegion`,
optionsFromConfigFiles.environments.OtherRegion.region,
Expand Down

0 comments on commit a7979ef

Please sign in to comment.