This reverts commit da4782e67f
.
PR Close #34730
This commit is contained in:
parent
01d1da67ee
commit
5e60215470
|
@ -16,10 +16,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -13,10 +13,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -12,11 +12,12 @@ filegroup(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
"//packages/bazel/src/schematics/ng-add:test",
|
||||
"//packages/bazel/src/schematics/ng-new:test",
|
||||
"//packages/bazel/src/schematics/utility:test",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -15,12 +15,13 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//packages/benchpress",
|
||||
"//packages/core/testing",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//protractor",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -19,10 +19,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -17,10 +17,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -24,10 +24,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -16,9 +16,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -21,12 +21,13 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//packages/platform-server",
|
||||
"//packages/platform-server/testing",
|
||||
"//packages/private/testing",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -22,12 +22,13 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
tags = [
|
||||
"ivy-only",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -33,12 +33,13 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
data = [
|
||||
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -63,7 +64,6 @@ ts_library(
|
|||
jasmine_node_test(
|
||||
name = "integration",
|
||||
timeout = "long",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
data = [
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
|
@ -74,8 +74,10 @@ jasmine_node_test(
|
|||
# Disabled in AOT mode because we want ngcc to compile non-AOT Angular packages.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":integration_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
"@npm//canonical-path",
|
||||
"@npm//convert-source-map",
|
||||
],
|
||||
|
|
|
@ -29,8 +29,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -21,8 +21,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -19,8 +19,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -18,8 +18,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -22,8 +22,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -23,8 +23,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -24,8 +24,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -20,8 +20,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -24,8 +24,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -17,8 +17,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -24,8 +24,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -20,8 +20,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -40,7 +40,6 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "extract_i18n",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/core:npm_package",
|
||||
],
|
||||
|
@ -49,11 +48,13 @@ jasmine_node_test(
|
|||
# tool will likely work differently.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":extract_i18n_lib",
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//minimist",
|
||||
],
|
||||
)
|
||||
|
@ -76,7 +77,6 @@ ts_library(
|
|||
jasmine_node_test(
|
||||
name = "ngc",
|
||||
timeout = "long", # 900 seconds
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
|
@ -88,10 +88,12 @@ jasmine_node_test(
|
|||
# own tests under //packages/compiler-cli/test/ngtsc.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":ngc_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//minimist",
|
||||
"@npm//rxjs",
|
||||
"@npm//tsickle",
|
||||
|
@ -116,14 +118,15 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "perform_watch",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/core:npm_package",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":perform_watch_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -143,13 +146,14 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "perform_compile",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/core:npm_package",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":perform_compile_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -18,7 +18,6 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "compliance",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
data = [
|
||||
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
|
||||
],
|
||||
|
@ -26,7 +25,9 @@ jasmine_node_test(
|
|||
tags = [
|
||||
"ivy-only",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -15,7 +15,6 @@ ts_library(
|
|||
jasmine_node_test(
|
||||
name = "check_types",
|
||||
timeout = "long", # 900 seconds
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
|
@ -25,10 +24,12 @@ jasmine_node_test(
|
|||
# compiler has its own typechecking implementation and tests.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":check_types_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -45,9 +46,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "typescript_version",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":typescript_version_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -16,12 +16,13 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -23,13 +23,14 @@ ts_library(
|
|||
jasmine_node_test(
|
||||
name = "ngtsc",
|
||||
timeout = "long",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
data = [
|
||||
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
|
||||
],
|
||||
shard_count = 4,
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":ngtsc_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
"@npm//minimist",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -19,7 +19,6 @@ ts_library(
|
|||
jasmine_node_test(
|
||||
name = "test",
|
||||
timeout = "long", # 900 seconds
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
|
@ -30,10 +29,12 @@ jasmine_node_test(
|
|||
# of these transformer utilities.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//source-map",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -70,7 +70,6 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
data = [
|
||||
"//packages/animations:npm_package",
|
||||
"//packages/common:npm_package",
|
||||
|
@ -80,10 +79,12 @@ jasmine_node_test(
|
|||
# Disabled as these tests pertain to the old ngc compilation and are not relevant in Ivy.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
":test_node_only_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//base64-js",
|
||||
"@npm//source-map",
|
||||
],
|
||||
|
|
|
@ -16,10 +16,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "css_parser",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":css_parser_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -15,10 +15,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "expression_parser",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":expression_parser_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -13,10 +13,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "ml_parser",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":ml_parser_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -18,9 +18,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -17,10 +17,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "selector",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":selector_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -59,8 +59,8 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
shard_count = 4,
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
":test_node_only_lib",
|
||||
|
@ -68,6 +68,7 @@ jasmine_node_test(
|
|||
"//packages/platform-server/testing",
|
||||
"//packages/zone.js/lib:zone_d_ts",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//base64-js",
|
||||
"@npm//source-map",
|
||||
],
|
||||
|
|
|
@ -37,11 +37,12 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "acceptance",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":acceptance_lib",
|
||||
"//packages/zone.js/lib:zone_d_ts",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
"@npm//base64-js",
|
||||
"@npm//source-map",
|
||||
],
|
||||
|
|
|
@ -61,9 +61,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "render3",
|
||||
bootstrap = [":domino_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location :domino_es5))"],
|
||||
deps = [
|
||||
":domino",
|
||||
":domino_es5",
|
||||
":render3_node_lib",
|
||||
"//packages/zone.js/lib",
|
||||
],
|
||||
|
|
|
@ -16,13 +16,14 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "ivy",
|
||||
bootstrap = ["//packages/core/test/render3:domino_es5"],
|
||||
tags = [
|
||||
"ivy-only",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //packages/core/test/render3:domino_es5))"],
|
||||
deps = [
|
||||
":ivy_lib",
|
||||
"//packages/core/test/render3:domino",
|
||||
"//packages/core/test/render3:domino_es5",
|
||||
"//packages/zone.js/lib",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -34,14 +34,15 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "view",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
tags = [
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":view_lib",
|
||||
":view_node_only_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -78,9 +78,10 @@ protractor_web_test_suite(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":core_tests_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -15,9 +15,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":fake_async_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -20,10 +20,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -20,10 +20,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -43,9 +43,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -14,8 +14,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -22,9 +22,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
"@npm//glob",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -14,15 +14,16 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "integration",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
data = glob(
|
||||
[
|
||||
"locales/**",
|
||||
"test_files/**",
|
||||
],
|
||||
),
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
"@npm//glob",
|
||||
"@npm//yargs",
|
||||
],
|
||||
|
|
|
@ -14,8 +14,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -16,8 +16,9 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node_no_angular_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -18,10 +18,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -24,10 +24,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -29,10 +29,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -22,11 +22,12 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
tags = [
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -21,10 +21,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -23,10 +23,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -27,9 +27,10 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":aot_test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -14,11 +14,12 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//packages/service-worker/config",
|
||||
"//packages/service-worker/config/testing",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -18,10 +18,11 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["//tools/testing:node_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -181,41 +181,46 @@ ts_library(
|
|||
|
||||
jasmine_node_test(
|
||||
name = "test_node",
|
||||
bootstrap = [":node_entry_point_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location :node_entry_point_es5))"],
|
||||
deps = [
|
||||
":node_entry_point_es5",
|
||||
":test_node_lib",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "test_node_no_jasmine_clock",
|
||||
bootstrap = [":node_entry_point_no_patch_clock_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location :node_entry_point_no_patch_clock_es5))"],
|
||||
deps = [
|
||||
":node_entry_point_no_patch_clock_es5",
|
||||
":test_node_lib",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "test_node_bluebird",
|
||||
bootstrap = [":node_bluebird_entry_point_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location :node_bluebird_entry_point_es5))"],
|
||||
deps = [
|
||||
":bluebird_spec",
|
||||
":node_bluebird_entry_point_es5",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "test_node_error_disable_policy",
|
||||
bootstrap = [":node_error_disable_policy_entry_point_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location :node_error_disable_policy_entry_point_es5))"],
|
||||
deps = [
|
||||
":node_error_disable_policy_entry_point",
|
||||
":node_error_disable_policy_entry_point_es5",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "test_node_error_lazy_policy",
|
||||
bootstrap = [":node_error_lazy_policy_entry_point_es5"],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location :node_error_lazy_policy_entry_point_es5))"],
|
||||
deps = [
|
||||
":node_error_lazy_policy_entry_point",
|
||||
":node_error_lazy_policy_entry_point_es5",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -256,11 +256,10 @@ def nodejs_binary(data = [], **kwargs):
|
|||
**kwargs
|
||||
)
|
||||
|
||||
def jasmine_node_test(bootstrap = [], **kwargs):
|
||||
def jasmine_node_test(deps = [], **kwargs):
|
||||
"""Default values for jasmine_node_test"""
|
||||
|
||||
# Very common dependencies for tests
|
||||
deps = kwargs.pop("deps", []) + [
|
||||
deps = deps + [
|
||||
# Very common dependencies for tests
|
||||
"@npm//chokidar",
|
||||
"@npm//domino",
|
||||
"@npm//jasmine-core",
|
||||
|
@ -269,18 +268,9 @@ def jasmine_node_test(bootstrap = [], **kwargs):
|
|||
"@npm//tslib",
|
||||
"@npm//xhr2",
|
||||
]
|
||||
configuration_env_vars = kwargs.pop("configuration_env_vars", []) + [
|
||||
"angular_ivy_enabled",
|
||||
]
|
||||
templated_args = kwargs.pop("templated_args", [])
|
||||
for label in bootstrap:
|
||||
deps += [label]
|
||||
templated_args += ["--node_options=--require=$(rlocation $(location %s))" % label]
|
||||
|
||||
_jasmine_node_test(
|
||||
deps = deps,
|
||||
configuration_env_vars = configuration_env_vars,
|
||||
templated_args = templated_args,
|
||||
configuration_env_vars = ["angular_ivy_enabled"],
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue