fix(e2e): import test IDs directly to fix E2E parse failure#30950
Merged
Conversation
…ctly The barrel export pulls in the full React component which triggers Jest parse failures on react-native Flow syntax in the E2E runner. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
christopherferreira9
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
PR #30917 imported
ExistingUserSheetSelectorsIDsfrom the barrelindex.tsinwallet.flow.ts. That barrel re-exports the fullExistingUserSheetReact component, which transitively pulls inBottomSheet→@react-navigation/native→react-native/index.js. The RN index file uses Flow-styleimport typeofsyntax that Jest in the Detox E2E runner can't parse, causing every E2E test that importswallet.flow.tsto fail withSyntaxError: Cannot use import statement outside a module.Fix: import
ExistingUserSheetSelectorsIDsdirectly fromExistingUserSheet.testIds.tsinstead of the barrel export.Changelog
CHANGELOG entry: null
Related issues
Fixes: E2E failures introduced by #30917
Manual testing steps
```gherkin
Feature: E2E smoke tests pass
Scenario: E2E tests can parse wallet.flow.ts imports
Given the E2E test suite runs in CI
```
Screenshots/Recordings
N/A — CI-only fix, no UI changes.
Before
All E2E smoke tests fail with:
```
SyntaxError: Cannot use import statement outside a module
at node_modules/react-native/index.js:27
```
After
E2E smoke tests parse successfully and run as expected.
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Single import-path change in E2E helpers; no app runtime or security behavior changes.
Overview
wallet.flow.tsnow importsExistingUserSheetSelectorsIDsfromExistingUserSheet.testIds.tsinstead of theExistingUserSheetbarrel. That avoids pulling the full sheet component (andreact-nativevia navigation/bottom sheet) into the Detox/Jest graph, which was breaking module parsing for every test that imports this flow.Reviewed by Cursor Bugbot for commit 6d9709a. Bugbot is set up for automated code reviews on this repo. Configure here.