From 928a3cf6501a97174d2ba5da114537076c89662a Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 23 Oct 2023 15:45:15 -0400 Subject: [PATCH 1/2] test: Avoid setup scripts during test runs There may be clarity and efficiency by having an explicit setup script. It was avoid running unnecessary scripts during test runs. It is also referenced in the current documentation as a script to run intentionally. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 586c4964e7..402e2ece13 100644 --- a/package.json +++ b/package.json @@ -92,9 +92,9 @@ "test:e2e:bundle:android": "npm run test:e2e:bundle:android:text && npm run test:e2e:bundle:android:bytecode", "test:e2e:bundle:android:text": "mkdir -p gutenberg/packages/react-native-editor/android/app/src/main/assets && npm run rn-bundle -- --reset-cache --platform android --dev false --minify false --entry-file index.js --bundle-output gutenberg/packages/react-native-editor/android/app/src/main/assets/index.android.text.bundle --assets-dest gutenberg/packages/react-native-editor/android/app/src/main/res", "test:e2e:bundle:android:bytecode": "./gutenberg/node_modules/react-native/sdks/hermesc/`node -e \"const platform=require('os').platform();console.log(platform === 'darwin' ? 'osx-bin' : (platform === 'linux' ? 'linux64-bin' : (platform === 'win32' ? 'win64-bin' : 'unsupported-os')));\"`/hermesc -emit-binary -O -out gutenberg/packages/react-native-editor/android/app/src/main/assets/index.android.bundle gutenberg/packages/react-native-editor/android/app/src/main/assets/index.android.text.bundle -output-source-map", - "test:e2e:android:local": "npm run core test:e2e:setup && npm run test:e2e:bundle:android && npm run core test:e2e:build-app:android && TEST_RN_PLATFORM=android npm run device-tests:local", + "test:e2e:android:local": "npm run test:e2e:bundle:android && npm run core test:e2e:build-app:android && TEST_RN_PLATFORM=android npm run device-tests:local", "test:e2e:bundle:ios": "mkdir -p gutenberg/packages/react-native-editor/ios/build/GutenbergDemo/Build/Products/Release-iphonesimulator/GutenbergDemo.app && npm run bundle:ios && cp bundle/ios/App.js ./gutenberg/packages/react-native-editor/ios/build/GutenbergDemo/Build/Products/Release-iphonesimulator/GutenbergDemo.app/main.jsbundle && cp -r bundle/ios/assets ./gutenberg/packages/react-native-editor/ios/build/GutenbergDemo/Build/Products/Release-iphonesimulator/GutenbergDemo.app/", - "test:e2e:ios:local": "npm run core test:e2e:setup && npm run core test:e2e:bundle:ios && npm run core test:e2e:build-app:ios && npm run core test:e2e:build-wda && TEST_RN_PLATFORM=ios npm run device-tests:local", + "test:e2e:ios:local": "npm run core test:e2e:bundle:ios && npm run core test:e2e:build-app:ios && npm run core test:e2e:build-wda && TEST_RN_PLATFORM=ios npm run device-tests:local", "sync:android": "bin/sync-android.sh", "build:gutenberg": "cd gutenberg && npm run build", "clean": "npm run core clean; npm run clean:gutenberg; npm run clean:i18n", From 185c24c4df070c019f01637bb96a7efe58e6a8f7 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 23 Oct 2023 15:45:23 -0400 Subject: [PATCH 2/2] build: Update Gutenberg ref --- gutenberg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gutenberg b/gutenberg index b37ad19e8c..0f6ad7d48f 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit b37ad19e8c6bf19495ba682fb8bbbced752aed04 +Subproject commit 0f6ad7d48f1027bc45c79823efe7005c58972867