From 1ed1ac7cafe792af8875fa902fa7d7da6c12bbe3 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Wed, 4 Aug 2021 13:01:49 -0700 Subject: [PATCH] Move integration test Buck targets to GitHub Summary: Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D30032467 fbshipit-source-id: 56e293c821f02e78fe13f5e7f22bcb2b2050019a --- IntegrationTests/BUCK | 30 ++++++++++++++++++++++++++++ ReactAndroid/src/androidTest/js/BUCK | 26 ++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 IntegrationTests/BUCK create mode 100644 ReactAndroid/src/androidTest/js/BUCK diff --git a/IntegrationTests/BUCK b/IntegrationTests/BUCK new file mode 100644 index 00000000000..61e3de6466a --- /dev/null +++ b/IntegrationTests/BUCK @@ -0,0 +1,30 @@ +load("@fbsource//tools/build_defs:js_glob.bzl", "js_glob") +load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library") + +# This file was generated by running +# js1 build buckfiles + +rn_library( + name = "IntegrationTests", + srcs = js_glob( + [ + "**/*", + ], + excludes = [ + "**/__*__/**", + "**/*.command", + "**/*.md", + "websocket_integration_test_server.js", + ], + ), + labels = ["supermodule:xplat/default/public.react_native.tests"], + skip_processors = True, + visibility = ["PUBLIC"], + deps = [ + "//xplat/js:node_modules__invariant", + "//xplat/js:node_modules__nullthrows", + "//xplat/js/RKJSModules/vendor/react:react", + "//xplat/js/react-native-github:react-native", + "//xplat/js/react-native-github/packages/assets:assets", + ], +) diff --git a/ReactAndroid/src/androidTest/js/BUCK b/ReactAndroid/src/androidTest/js/BUCK new file mode 100644 index 00000000000..2e71cfc3c6b --- /dev/null +++ b/ReactAndroid/src/androidTest/js/BUCK @@ -0,0 +1,26 @@ +load("@fbsource//tools/build_defs:js_glob.bzl", "js_glob") +load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library") + +# This file was generated by running +# js1 build buckfiles + +rn_library( + name = "js", + srcs = js_glob( + [ + "**/*", + ], + excludes = [ + "**/__*__/**", + "**/*.command", + "**/*.md", + ], + ), + labels = ["supermodule:xplat/default/public.react_native.tests"], + skip_processors = True, + visibility = ["PUBLIC"], + deps = [ + "//xplat/js/RKJSModules/vendor/react:react", + "//xplat/js/react-native-github:react-native", + ], +)