File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ jsEngine: graaljs
88- launchApp :
99 clearState : true
1010 arguments :
11- sentryAuthToken : ${SENTRY_AUTH_TOKEN}
1211 replaysOnErrorSampleRate : ${replaysOnErrorSampleRate}
1312
1413- runFlow : assertTestReady.yml
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/react-native' ;
22import * as React from 'react' ;
33import { Text , View } from 'react-native' ;
4- import { LaunchArguments } from "react-native-launch-arguments" ;
54
65const E2E_TESTS_READY_TEXT = 'E2E Tests Ready' ;
76
8- const getSentryAuthToken = ( ) :
9- | { token : string }
10- | { error : string } => {
11- const { sentryAuthToken } = LaunchArguments . value < {
12- sentryAuthToken : unknown ;
13- } > ( ) ;
14-
15- if ( typeof sentryAuthToken !== 'string' ) {
16- return { error : 'Sentry Auth Token is required' } ;
17- }
18-
19- if ( sentryAuthToken . length === 0 ) {
20- return { error : 'Sentry Auth Token must not be empty' } ;
21- }
22-
23- return { token : sentryAuthToken } ;
24- } ;
25-
267const EndToEndTestsScreen = ( ) : JSX . Element => {
278 const [ isReady , setIsReady ] = React . useState ( false ) ;
289 const [ eventId , setEventId ] = React . useState < string | null > ( null ) ;
You can’t perform that action at this time.
0 commit comments