diff --git a/app/components/Views/BrowserTab/index.js b/app/components/Views/BrowserTab/index.js index f63a6f53f34..2132c32c7de 100644 --- a/app/components/Views/BrowserTab/index.js +++ b/app/components/Views/BrowserTab/index.js @@ -110,7 +110,7 @@ import trackErrorAsAnalytics from '../../../util/metrics/TrackError/trackErrorAs import { selectPermissionControllerState } from '../../../selectors/snaps/permissionController'; import { useIsFocused } from '@react-navigation/native'; import handleWebViewFocus from '../../../util/browser/webViewFocus'; -import { isTest } from '../../../util/test/utils.js'; +import { isTest } from '../../../util/test/utils.ts'; import { EXTERNAL_LINK_TYPE } from '../../../constants/browser'; const { HOMEPAGE_URL, NOTIFICATION_NAMES } = AppConstants; diff --git a/app/util/test/utils.js b/app/util/test/utils.ts similarity index 82% rename from app/util/test/utils.js rename to app/util/test/utils.ts index a66a7bdd4b3..eaaa0522ce0 100644 --- a/app/util/test/utils.js +++ b/app/util/test/utils.ts @@ -3,7 +3,11 @@ export const flushPromises = () => new Promise(setImmediate); export const FIXTURE_SERVER_PORT = 12345; // E2E test configuration required in app -export const testConfig = {}; +interface TestConfig { + fixtureServerPort?: number; +} + +export const testConfig: TestConfig = {}; /** * TODO: Update this condition once we change E2E builds to use release instead of debug diff --git a/index.js b/index.js index ece1f59ea50..294dff20908 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ setupSentry(); import { AppRegistry, LogBox } from 'react-native'; import Root from './app/components/Views/Root'; import { name } from './app.json'; -import { isTest } from './app/util/test/utils.js'; +import { isTest } from './app/util/test/utils.ts'; import { Performance } from './app/core/Performance'; diff --git a/shim.js b/shim.js index ec6b99e4e6e..10cc5d9c0c8 100644 --- a/shim.js +++ b/shim.js @@ -5,7 +5,7 @@ import { FIXTURE_SERVER_PORT, isTest, testConfig, -} from './app/util/test/utils.js'; +} from './app/util/test/utils.ts'; import { LaunchArguments } from 'react-native-launch-arguments'; import { defaultMockPort } from './e2e/mockServer/mockUrlCollection';