Skip to content

Commit

Permalink
update cli messages to include ios npm tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Edney committed Jan 23, 2024
1 parent 564ce42 commit 2978c83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ const HERMES_INSTRUCTIONS = `You are running a version of React Native that we c
`

const BUGSNAG_CLI_INSTRUCTIONS = `bugsnag:upload-android task added to your package.json - run this task to upload Android source maps after a build.
const BUGSNAG_CLI_INSTRUCTIONS = `The following tasks have been added to your package.json:
bugsnag:upload-android - run this task to upload Android source maps after a build.
bugsnag:upload-ios - run this task to upload iOS source maps after a build.
See https://docs.bugsnag.com/platforms/react-native/react-native/showing-full-stacktraces for details.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ Scenario: successfully modify project
When RN version is 0.68 or lower dismiss the warning message
And I wait for the current stdout line to match the regex "Do you want to add an NPM task to your package.json that you can run to upload Android and iOS source maps\?"
When I input "n" interactively
And I wait for the interactive shell to output the following lines in stdout
"""
The following tasks have been added to your package.json:
bugsnag:upload-android - run this task to upload Android source maps after a build.
bugsnag:upload-ios - run this task to upload iOS source maps after a build.
See https://docs.bugsnag.com/platforms/react-native/react-native/showing-full-stacktraces for details.
"""
And I wait for the current stdout line to match the regex "Hit enter to continue"
And I wait for the current stdout line to match the regex "Do you want to automatically upload JavaScript source maps as part of the Xcode build\?"
When I input "y" interactively
Expand Down

0 comments on commit 2978c83

Please sign in to comment.