Skip to content

Commit d8b1870

Browse files
author
Krzysztof Wojnar
committed
chore(e2e): prefix RNS for env variables
1 parent 89208a9 commit d8b1870

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

scripts/e2e/detox-utils.cjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const ChildProcess = require('node:child_process');
22
const { iosDevice } = require('./ios-devices');
33

4-
const CI_ADB_NAME = 'e2e_emulator';
4+
const RNS_CI_AVD_NAME = 'e2e_emulator';
55

66
const isRunningCI = process.env.CI != null;
77

@@ -12,8 +12,8 @@ const apkBulidArchitecture = isRunningCI ? 'x86_64' : 'arm64-v8a';
1212
const testButlerApkPath = isRunningCI ? ['../Example/e2e/apps/test-butler-app-2.2.1.apk'] : undefined;
1313

1414
function detectLocalAndroidEmulator() {
15-
// "DETOX_AVD_NAME" can be set for local developement
16-
const detoxAvdName = process.env.DETOX_AVD_NAME ?? null;
15+
// "RNS_DETOX_AVD_NAME" can be set for local developement
16+
const detoxAvdName = process.env.RNS_DETOX_AVD_NAME ?? null;
1717
if (detoxAvdName !== null) {
1818
return detoxAvdName
1919
}
@@ -44,7 +44,7 @@ function detectLocalAndroidEmulator() {
4444
}
4545

4646
function detectAndroidEmulatorName() {
47-
return isRunningCI ? CI_ADB_NAME : detectLocalAndroidEmulator(); // ??
47+
return isRunningCI ? RNS_CI_AVD_NAME : detectLocalAndroidEmulator(); // ??
4848
}
4949

5050
/**
@@ -99,7 +99,7 @@ function commonDetoxConfigFactory(applicationName) {
9999
attached: {
100100
type: 'android.attached',
101101
device: {
102-
adbName: CI_ADB_NAME,
102+
avdName: RNS_CI_AVD_NAME,
103103
},
104104
utilBinaryPaths: testButlerApkPath,
105105
},

scripts/e2e/ios-devices.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ const DEFEAULT_IOS_VERSION = 'iOS 26.2';
55
* @return {string}
66
*/
77
function getAppleDevice() {
8-
return process.env.E2E_APPLE_DEVICE || DEFAULT_APPLE_DEVICE;
8+
return process.env.RNS_E2E_APPLE_DEVICE || DEFAULT_APPLE_DEVICE;
99
}
1010
/**
1111
* @return {`iOS ${string}`} requested version of ios, or default if not specified
1212
*/
1313
function getIOSVersion() {
14-
const passedVersion = process.env.E2E_IOS_VERSION;
14+
const passedVersion = process.env.RNS_E2E_IOS_VERSION;
1515
if (passedVersion) {
1616
if (passedVersion.startsWith('iOS ')) {
1717
return /** @type {`iOS ${string}`} */ (passedVersion);

0 commit comments

Comments
 (0)