From 50ab8d8ad4effeea362bf2bee093713bc7479a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Wed, 4 Apr 2018 11:38:37 -0700 Subject: [PATCH] build: create a more focused build file for packages/compiler/render3 (#23168) PR Close #23168 --- packages/compiler/test/BUILD.bazel | 7 +++--- packages/compiler/test/render3/BUILD.bazel | 29 ++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 packages/compiler/test/render3/BUILD.bazel diff --git a/packages/compiler/test/BUILD.bazel b/packages/compiler/test/BUILD.bazel index 3cf1eb3dbf..b944d7dcc2 100644 --- a/packages/compiler/test/BUILD.bazel +++ b/packages/compiler/test/BUILD.bazel @@ -15,7 +15,10 @@ UTILS = [ ts_library( name = "test_utils", srcs = UTILS, - visibility = ["//packages/compiler-cli/test:__subpackages__"], + visibility = [ + "//packages/compiler-cli/test:__subpackages__", + "//packages/compiler/test:__subpackages__", + ], deps = [ "//packages:types", "//packages/compiler", @@ -68,7 +71,6 @@ jasmine_node_test( "//packages/common:npm_package", "//packages/core:npm_package", ], - # dissable since tests are running but not yet passing deps = [ ":test_lib", ":test_node_only_lib", @@ -79,7 +81,6 @@ jasmine_node_test( ts_web_test( name = "test_web", - # disable since tests are running but not yet passing deps = [ ":test_lib", ], diff --git a/packages/compiler/test/render3/BUILD.bazel b/packages/compiler/test/render3/BUILD.bazel new file mode 100644 index 0000000000..5f2f64d936 --- /dev/null +++ b/packages/compiler/test/render3/BUILD.bazel @@ -0,0 +1,29 @@ +load("//tools:defaults.bzl", "ts_library", "ts_web_test") +load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test") + +ts_library( + name = "test_lib", + testonly = 1, + srcs = glob( + ["**/*.ts"], + ), + deps = [ + "//packages:types", + "//packages/compiler", + "//packages/compiler/test:test_utils", + "//packages/core", + ], +) + +jasmine_node_test( + name = "test", + bootstrap = ["angular/tools/testing/init_node_spec.js"], + data = [ + "//packages/common:npm_package", + "//packages/core:npm_package", + ], + deps = [ + ":test_lib", + "//tools/testing:node", + ], +)