diff --git a/tests/e2e/README.md b/tests/e2e/README.md index a142530d4388..64d11d3b2ca4 100644 --- a/tests/e2e/README.md +++ b/tests/e2e/README.md @@ -25,11 +25,11 @@ Ideally you want to run these tests on your branch before you want to merge your The tests can be run with the following CLI options: -- `--config`: Extend/Overwrite the default config with your values, e.g. `--config config.local.js` +- `--config`: Extend/Overwrite the default config with your values, e.g. `--config config.local.ts` - `--includes`: Expects a string/regexp to filter the tests to run, e.g. `--includes "login|signup"` - `--skipInstallDeps`: Skips the `npm install` step, useful during development - `--development`: Applies some default configurations: - - Sets the config to `config.local.js`, which executes the tests with fewer iterations + - Sets the config to `config.local.ts`, which executes the tests with fewer iterations - Runs the tests only on the current branch - `--buildMode`: There are three build modes, the default is `full`: 1. **full**: rebuilds the full native app in (e2e) release mode diff --git a/tests/e2e/config.local.js b/tests/e2e/config.local.ts similarity index 77% rename from tests/e2e/config.local.js rename to tests/e2e/config.local.ts index 45b946b91aeb..40f7afde3985 100644 --- a/tests/e2e/config.local.js +++ b/tests/e2e/config.local.ts @@ -1,9 +1,12 @@ -module.exports = { +type Config = Record; + +const config: Config = { MAIN_APP_PACKAGE: 'com.expensify.chat.e2e', DELTA_APP_PACKAGE: 'com.expensify.chat.e2edelta', MAIN_APP_PATH: './android/app/build/outputs/apk/e2e/release/app-e2e-release.apk', DELTA_APP_PATH: './android/app/build/outputs/apk/e2edelta/release/app-e2edelta-release.apk', - BOOT_COOL_DOWN: 1 * 1000, RUNS: 8, }; + +export default config; diff --git a/tests/e2e/testRunner.js b/tests/e2e/testRunner.js index 800dd0d4fb9e..4d0651549ac6 100644 --- a/tests/e2e/testRunner.js +++ b/tests/e2e/testRunner.js @@ -75,7 +75,7 @@ let buildMode = 'full'; // When we are in dev mode we want to apply certain default params and configs const isDevMode = args.includes('--development'); if (isDevMode) { - setConfigPath('config.local.js'); + setConfigPath('config.local.ts'); buildMode = 'js-only'; }