Project from react-native init no longer includes __tests__ directory
See original GitHub issue- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
This is not applicable to my issue because the bug I’m reporting is around react-native init
, but here’s what info I get from running the command within the generated folder:
➜ bin > react-native --version
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory
➜ bin > cd MyAwesomeProject
➜ MyAwesomeProject > react-native info
Scanning folders for symlinks in /Users/ashfurrow/bin/MyAwesomeProject/node_modules (44ms)
Environment:
OS: macOS High Sierra 10.13.5
Node: 8.4.0
Yarn: 1.6.0
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
I see this isn’t using the latest React Native version, but it is using the latest react-native-cli
version.
Description
The project generated by running react-native init
no longer includes a __tests__
directory. At some point, it did but I can’t find where in the changelog that it was removed.
The init
command appears to pull in the template from this directory of the repo, which includes a __tests__
directory, but I took a look around and I’m not sure what the problem is. I’m happy to help provide more details or dive into debugging this with some guidance. Thanks!
Reproducible Demo
In a terminal, run react-native init TestApp
and then cd
into the TestApp
directory.
Expected results: there is a __tests__
directory with a basic test for App.js
.
Actual results: there is no __tests__
directory.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:6 (3 by maintainers)
Thanks for reporting this!
Thanks for migrating the issue, let me close this one.