* [platform-ios] Describe native_modules.rb input
* [package] Add native_modules.rb to jest suite
* [platform-ios/native_modules] Use CP API in tests
* [platform-ios/native_modules] Port tests to JS
* [platform-ios/native_modules] Add platform specificity
Only include pods in targets that target platforms the pod supports.
* [platform-ios/native_modules] Disable tests in unssuported envs
* [platform-ios/native_modules] Clean-up test
* [platform-ios/native_modules] Improve output
* chore: make `cleanup` async
Using `rimraf.sync` can cause `ENOTEMPTY` and `EBUSY` errors on Windows.
This can make the Windows CI to fail randomly. Changing to the async
method defaults to autoretry 3 times and thus avoiding this issues.
* chore: jest config
* chore: e2e tests use sync cleanup
* chore: pr feedback
* chore: revert timeout
* Update __e2e__/default.test.ts
* Update __e2e__/default.test.ts
Co-authored-by: Michał Pierzchała <[email protected]>
* Allow out of tree platforms to work without custom metro configs
* Need to add the platofrm specifc InitializeCore to getModulesRunBeforeMainModule
* lock
* Add npmPackageName to schema
* Some documentation
* Use finally to restore resolveRequest
Metro `/symbolicate` endpoint requires the request body to be available
in `req.rawBody`, which the `rawBodyMiddleware` adds.
Fixes the following error from `cli-server-api`:
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at /Users/ville/Projects/react-native-cli/node_modules/metro/src/Server.js:1026:28
* Moved disabling logger at the top when user used config command
* Added e2e tests for config command
* Added config command output snapshot
* Updated config test snapshot
* Added project root replacement helper
* Removed default terminal program from snapshots
* Moved tests to jest folder and removed additional snapshot
* less snapshots; use raw serializer
* strip unnecessary parts of the snapshot
* Added tmp directory to regex which replaces project root before snapshot
* Added slash before passing testFolder for project root replacing helper
* Fixed problem with windows paths replacing
* CR fixes
Co-authored-by: Michał Pierzchała <[email protected]>
On Windows CI tests could be run from the root of a disk (e.g. D:\\) and
causing permission issues. This PR uses the OS temp directory to create
a new one and use it as the project root to avoid this problem.
Not passing the `--watchFolders` flag to `npx react-native start` when testing changes locally results in a cryptic error "ReferenceError: SHA-1 for file (...)/cli/node_modules/metro/src/lib/polyfills/require.js (...) is not computed".
Let's add a more prominent note about it in the contributor docs to help others avoid this problem.
* Fix: allow Hermes Debugger to connect from Flipper
This change reflects D20526486 by @rickhanlonii at Facebook: when Running Hermes Debugger from inside Flipper, the origin is localhost, but not the metro port. This fixes https://github.com/facebook/flipper/issues/660#issuecomment-606239984
* Fixed compile errors
* Fix lint error