Skip to content

Commit 956d864

Browse files
committed
[INT-324] update regions in TS integration tests
1 parent 89b8f12 commit 956d864

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/env-vars-build-id.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RE_VISUAL_BUILD_ID, SAUCE_VISUAL_BUILD_NAME } from './utils/helpers';
33
import { execute } from './utils/process';
44
import { FileHandle } from 'fs/promises';
55

6-
const region = 'us-west-1' as SauceRegion;
6+
const region = (process.env.SAUCE_REGION ?? 'us-west-1') as SauceRegion;
77

88
const visualApi = getApi({
99
region,

tests/env-vars-custom-id.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { execute } from './utils/process';
77
import { FileHandle } from 'fs/promises';
88
import { randomBytes } from 'crypto';
99

10-
const region = 'us-west-1' as SauceRegion;
10+
const region = (process.env.SAUCE_REGION ?? 'us-west-1') as SauceRegion;
1111

1212
const visualApi = getApi({
1313
region,

tests/env-vars-unlinked-custom-id.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { execute } from './utils/process';
99
import { FileHandle } from 'fs/promises';
1010
import { randomBytes } from 'crypto';
1111

12-
const region = 'us-west-1' as SauceRegion;
12+
const region = (process.env.SAUCE_REGION ?? 'us-west-1') as SauceRegion;
1313

1414
const visualApi = getApi({
1515
region,

tests/env-vars.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { execute } from './utils/process';
1212
import { FileHandle } from 'fs/promises';
1313

14-
const region = 'us-west-1' as SauceRegion;
14+
const region = (process.env.SAUCE_REGION ?? 'us-west-1') as SauceRegion;
1515

1616
const visualApi = getApi({
1717
region,

0 commit comments

Comments
 (0)