Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename App-test.tsx to App.test.tsx #35826

Conversation

Adnan-Bacic
Copy link
Contributor

Summary

The starter test file when creating a create-react-app project is App.test.js, while in react-native its App-test.js(recently changed to .tsx instead of .js)

This aims to unify the naming convention between create-react-app and react-native init.

Originally suggested here: react-native-community/discussions-and-proposals#570

Changelog

[GENERAL] [CHANGED] - Renamed App-test.tsx to App.test.tsx to unify naming convention with create-react-app

Test Plan

  1. cd template
  2. yarn
  3. yarn test

The test inside __tests__/App.test.tsx should (still) pass

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 13, 2023
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,493,485 +0
android hermes armeabi-v7a 7,813,452 +0
android hermes x86 8,967,867 +0
android hermes x86_64 8,827,371 +0
android jsc arm64-v8a 9,679,111 +0
android jsc armeabi-v7a 8,412,818 +0
android jsc x86 9,742,216 +0
android jsc x86_64 10,220,841 +0

Base commit: 8befb74
Branch: main

@facebook-github-bot
Copy link
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 16, 2023
@facebook-github-bot
Copy link
Contributor

@NickGerleman merged this pull request in 3c03aef.

@Adnan-Bacic Adnan-Bacic deleted the rename-App-test.tsx-to-App.test.tsx branch April 21, 2023 06:06
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
The starter test file when creating a `create-react-app` project is `App.test.js`, while in react-native its `App-test.js`_(recently changed to `.tsx` instead of `.js`)_

This aims to unify the naming convention between `create-react-app` and `react-native init`.

Originally suggested here: react-native-community/discussions-and-proposals#570

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[GENERAL] [CHANGED] - Renamed App-test.tsx to App.test.tsx to unify naming convention with create-react-app

Pull Request resolved: facebook#35826

Test Plan:
1. cd template
2. yarn
3. yarn test

The test inside `__tests__/App.test.tsx` should (still) pass

Reviewed By: cipolleschi

Differential Revision: D42527535

Pulled By: NickGerleman

fbshipit-source-id: 5247c5a65760973afe39a4b37abb5a6b52c1fadc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants