mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7324c22ff9
Summary: There is a large amount of autogenerated files in the coverage folder when running `jest --coverage`. This folder is also in .gitignore for react projects created with `create-react-app` Originally suggested here: https://github.com/react-native-community/discussions-and-proposals/discussions/569 ## 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] [ADDED] - Added "coverage" folder generated på `jest --coverage` to .gitignore Pull Request resolved: https://github.com/facebook/react-native/pull/35809 Test Plan: 1. cd template 2. yarn 3. yarn test --coverage Im not sure why many of the files in the template folder have an underscore(_) in the filenames instead of a dot(.). When creating a react-native project they have a dot. So if you run the above commands, the coverage folder will not be ignored since its not in `.gitingore` but in `_gitignore`. However, if you temporarily create a `.gitignore` file, you will see that the coverage folder is ignored. 4. Temporarily create `.gitignore` file to verify that coverage folder is ignored Reviewed By: cortinico Differential Revision: D42454560 Pulled By: jacdebug fbshipit-source-id: 0be007d3ba3dde47814c0ce0fb8b0ff9f67d637b
67 lines
989 B
Plaintext
67 lines
989 B
Plaintext
# OSX
|
|
#
|
|
.DS_Store
|
|
|
|
# Xcode
|
|
#
|
|
build/
|
|
*.pbxuser
|
|
!default.pbxuser
|
|
*.mode1v3
|
|
!default.mode1v3
|
|
*.mode2v3
|
|
!default.mode2v3
|
|
*.perspectivev3
|
|
!default.perspectivev3
|
|
xcuserdata
|
|
*.xccheckout
|
|
*.moved-aside
|
|
DerivedData
|
|
*.hmap
|
|
*.ipa
|
|
*.xcuserstate
|
|
ios/.xcode.env.local
|
|
|
|
# Android/IntelliJ
|
|
#
|
|
build/
|
|
.idea
|
|
.gradle
|
|
local.properties
|
|
*.iml
|
|
*.hprof
|
|
.cxx/
|
|
*.keystore
|
|
!debug.keystore
|
|
|
|
# node.js
|
|
#
|
|
node_modules/
|
|
npm-debug.log
|
|
yarn-error.log
|
|
|
|
# fastlane
|
|
#
|
|
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
|
# screenshots whenever they are needed.
|
|
# For more information about the recommended setup visit:
|
|
# https://docs.fastlane.tools/best-practices/source-control/
|
|
|
|
**/fastlane/report.xml
|
|
**/fastlane/Preview.html
|
|
**/fastlane/screenshots
|
|
**/fastlane/test_output
|
|
|
|
# Bundle artifact
|
|
*.jsbundle
|
|
|
|
# Ruby / CocoaPods
|
|
/ios/Pods/
|
|
/vendor/bundle/
|
|
|
|
# Temporary files created by Metro to check the health of the file watcher
|
|
.metro-health-check*
|
|
|
|
# testing
|
|
/coverage
|