[LOCAL] fix e2e local testing script post metro-config

This commit is contained in:
Lorenzo Sciandra
2023-03-30 17:50:42 +01:00
parent 8beed6ad08
commit 392a843494
2 changed files with 6 additions and 8 deletions
+3 -5
View File
@@ -97,11 +97,9 @@ function isPackagerRunning(
}
// this is a very limited implementation of how this should work
// literally, this is macos only
// a more robust implementation can be found here:
// https://github.com/react-native-community/cli/blob/7c003f2b1d9d80ec5c167614ba533a004272c685/packages/cli-platform-android/src/commands/runAndroid/index.ts#L195
function launchPackagerInSeparateWindow() {
exec("open -a 'Terminal' ./packages/react-native/scripts/packager.sh");
function launchPackagerInSeparateWindow(folderPath) {
const command = `tell application "Terminal" to do script "cd ${folderPath} && yarn start"`;
exec(`osascript -e '${command}'`);
}
module.exports = {