Skip to content

Project from react-native init no longer includes __tests__ directory #19761

Closed
@ashfurrow

Description

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.

Metadata

Assignees

No one assigned

    Labels

    Impact: RegressionDescribes a behavior that used to work on a prior release, but stopped working recently.Resolution: LockedThis issue was locked by the bot.🔩Test InfrastructureTest infrastructure and continuous integration.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions