test: handle bootstrap templated_args in jasmine_node_test defaults.bzl (#34736)

PR Close #34736
This commit is contained in:
Greg Magolan 2020-01-07 23:56:49 -08:00 committed by Matias Niemelä
parent a4bbc35005
commit aee67f08d9
61 changed files with 83 additions and 142 deletions

View File

@ -16,11 +16,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -13,11 +13,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -12,12 +12,11 @@ filegroup(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//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",
],
)

View File

@ -15,13 +15,12 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//packages/benchpress",
"//packages/core/testing",
"//tools/testing:node",
"//tools/testing:node_es5",
"@npm//protractor",
],
)

View File

@ -19,11 +19,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -17,11 +17,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -24,11 +24,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -16,10 +16,9 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -21,13 +21,12 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//packages/platform-server",
"//packages/platform-server/testing",
"//packages/private/testing",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -22,13 +22,12 @@ 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",
],
)

View File

@ -33,13 +33,12 @@ 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",
],
)
@ -64,6 +63,7 @@ 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,10 +74,8 @@ 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",
],

View File

@ -29,9 +29,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -21,9 +21,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -19,9 +19,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -18,9 +18,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -22,9 +22,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -23,9 +23,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -24,9 +24,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -20,9 +20,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -24,9 +24,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -17,9 +17,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -24,9 +24,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -20,9 +20,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -40,6 +40,7 @@ ts_library(
jasmine_node_test(
name = "extract_i18n",
bootstrap = ["//tools/testing:node_es5"],
data = [
"//packages/core:npm_package",
],
@ -48,13 +49,11 @@ 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",
],
)
@ -77,6 +76,7 @@ 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,12 +88,10 @@ 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",
@ -118,15 +116,14 @@ 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",
],
)
@ -146,14 +143,13 @@ 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",
],
)

View File

@ -18,6 +18,7 @@ ts_library(
jasmine_node_test(
name = "compliance",
bootstrap = ["//tools/testing:node_no_angular_es5"],
data = [
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
],
@ -25,9 +26,7 @@ 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",
],
)

View File

@ -15,6 +15,7 @@ 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",
@ -24,12 +25,10 @@ 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",
],
)
@ -46,10 +45,9 @@ ts_library(
jasmine_node_test(
name = "typescript_version",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":typescript_version_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -16,13 +16,12 @@ 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",
],
)

View File

@ -23,14 +23,13 @@ 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",
],
)

View File

@ -19,6 +19,7 @@ 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",
@ -29,12 +30,10 @@ 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",
],
)

View File

@ -70,6 +70,7 @@ ts_library(
jasmine_node_test(
name = "test",
bootstrap = ["//tools/testing:node_es5"],
data = [
"//packages/animations:npm_package",
"//packages/common:npm_package",
@ -79,12 +80,10 @@ 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",
],

View File

@ -16,11 +16,10 @@ ts_library(
jasmine_node_test(
name = "css_parser",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":css_parser_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -15,11 +15,10 @@ ts_library(
jasmine_node_test(
name = "expression_parser",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":expression_parser_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -13,11 +13,10 @@ ts_library(
jasmine_node_test(
name = "ml_parser",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":ml_parser_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -18,10 +18,9 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -17,11 +17,10 @@ ts_library(
jasmine_node_test(
name = "selector",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":selector_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -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,7 +68,6 @@ 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",
],

View File

@ -37,12 +37,11 @@ ts_library(
jasmine_node_test(
name = "acceptance",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//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",
],

View File

@ -61,10 +61,9 @@ ts_library(
jasmine_node_test(
name = "render3",
templated_args = ["--node_options=--require=$(rlocation $(location :domino_es5))"],
bootstrap = [":domino_es5"],
deps = [
":domino",
":domino_es5",
":render3_node_lib",
"//packages/zone.js/lib",
],

View File

@ -16,14 +16,13 @@ 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",
],
)

View File

@ -34,15 +34,14 @@ 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",
],
)

View File

@ -78,10 +78,9 @@ protractor_web_test_suite(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":core_tests_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -15,10 +15,9 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":fake_async_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -20,11 +20,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -20,11 +20,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -43,10 +43,9 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -14,9 +14,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -22,10 +22,9 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
"@npm//glob",
],
)

View File

@ -14,16 +14,15 @@ 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",
],

View File

@ -14,9 +14,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -16,9 +16,8 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
bootstrap = ["//tools/testing:node_no_angular_es5"],
deps = [
":test_lib",
"//tools/testing:node_no_angular_es5",
],
)

View File

@ -18,11 +18,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -24,11 +24,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -29,11 +29,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -22,12 +22,11 @@ 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",
],
)

View File

@ -21,11 +21,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -23,11 +23,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -27,10 +27,9 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":aot_test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -14,12 +14,11 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//packages/service-worker/config",
"//packages/service-worker/config/testing",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -18,11 +18,10 @@ ts_library(
jasmine_node_test(
name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
bootstrap = ["//tools/testing:node_es5"],
deps = [
":test_lib",
"//tools/testing:node",
"//tools/testing:node_es5",
],
)

View File

@ -181,46 +181,41 @@ ts_library(
jasmine_node_test(
name = "test_node",
templated_args = ["--node_options=--require=$(rlocation $(location :node_entry_point_es5))"],
bootstrap = [":node_entry_point_es5"],
deps = [
":node_entry_point_es5",
":test_node_lib",
],
)
jasmine_node_test(
name = "test_node_no_jasmine_clock",
templated_args = ["--node_options=--require=$(rlocation $(location :node_entry_point_no_patch_clock_es5))"],
bootstrap = [":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",
templated_args = ["--node_options=--require=$(rlocation $(location :node_bluebird_entry_point_es5))"],
bootstrap = [":node_bluebird_entry_point_es5"],
deps = [
":bluebird_spec",
":node_bluebird_entry_point_es5",
],
)
jasmine_node_test(
name = "test_node_error_disable_policy",
templated_args = ["--node_options=--require=$(rlocation $(location :node_error_disable_policy_entry_point_es5))"],
bootstrap = [":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",
templated_args = ["--node_options=--require=$(rlocation $(location :node_error_lazy_policy_entry_point_es5))"],
bootstrap = [":node_error_lazy_policy_entry_point_es5"],
deps = [
":node_error_lazy_policy_entry_point",
":node_error_lazy_policy_entry_point_es5",
],
)

View File

@ -256,10 +256,11 @@ def nodejs_binary(data = [], **kwargs):
**kwargs
)
def jasmine_node_test(deps = [], **kwargs):
def jasmine_node_test(bootstrap = [], **kwargs):
"""Default values for jasmine_node_test"""
deps = deps + [
# Very common dependencies for tests
# Very common dependencies for tests
deps = kwargs.pop("deps", []) + [
"@npm//chokidar",
"@npm//domino",
"@npm//jasmine-core",
@ -268,9 +269,18 @@ def jasmine_node_test(deps = [], **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 = ["angular_ivy_enabled"],
configuration_env_vars = configuration_env_vars,
templated_args = templated_args,
**kwargs
)