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( jasmine_node_test(
name = "test", name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"], bootstrap = ["//tools/testing:node_es5"],
deps = [ deps = [
":test_lib", ":test_lib",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )

View File

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

View File

@ -12,12 +12,11 @@ filegroup(
jasmine_node_test( jasmine_node_test(
name = "test", name = "test",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"], bootstrap = ["//tools/testing:node_es5"],
deps = [ deps = [
"//packages/bazel/src/schematics/ng-add:test", "//packages/bazel/src/schematics/ng-add:test",
"//packages/bazel/src/schematics/ng-new:test", "//packages/bazel/src/schematics/ng-new:test",
"//packages/bazel/src/schematics/utility:test", "//packages/bazel/src/schematics/utility:test",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,13 +33,12 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "test", name = "test",
bootstrap = ["//tools/testing:node_no_angular_es5"],
data = [ data = [
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package", "//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
deps = [ deps = [
":test_lib", ":test_lib",
"//tools/testing:node_no_angular_es5",
], ],
) )
@ -64,6 +63,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "integration", name = "integration",
timeout = "long", timeout = "long",
bootstrap = ["//tools/testing:node_no_angular_es5"],
data = [ data = [
"//packages/common:npm_package", "//packages/common:npm_package",
"//packages/core: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. # Disabled in AOT mode because we want ngcc to compile non-AOT Angular packages.
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
deps = [ deps = [
":integration_lib", ":integration_lib",
"//tools/testing:node_no_angular_es5",
"@npm//canonical-path", "@npm//canonical-path",
"@npm//convert-source-map", "@npm//convert-source-map",
], ],

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -40,6 +40,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "extract_i18n", name = "extract_i18n",
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/core:npm_package", "//packages/core:npm_package",
], ],
@ -48,13 +49,11 @@ jasmine_node_test(
# tool will likely work differently. # tool will likely work differently.
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":extract_i18n_lib", ":extract_i18n_lib",
"//packages/common:npm_package", "//packages/common:npm_package",
"//packages/core", "//packages/core",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
"@npm//minimist", "@npm//minimist",
], ],
) )
@ -77,6 +76,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "ngc", name = "ngc",
timeout = "long", # 900 seconds timeout = "long", # 900 seconds
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/common:npm_package", "//packages/common:npm_package",
"//packages/core:npm_package", "//packages/core:npm_package",
@ -88,12 +88,10 @@ jasmine_node_test(
# own tests under //packages/compiler-cli/test/ngtsc. # own tests under //packages/compiler-cli/test/ngtsc.
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":ngc_lib", ":ngc_lib",
"//packages/core", "//packages/core",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
"@npm//minimist", "@npm//minimist",
"@npm//rxjs", "@npm//rxjs",
"@npm//tsickle", "@npm//tsickle",
@ -118,15 +116,14 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "perform_watch", name = "perform_watch",
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/core:npm_package", "//packages/core:npm_package",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":perform_watch_lib", ":perform_watch_lib",
"//packages/core", "//packages/core",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )
@ -146,14 +143,13 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "perform_compile", name = "perform_compile",
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/core:npm_package", "//packages/core:npm_package",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":perform_compile_lib", ":perform_compile_lib",
"//packages/core", "//packages/core",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )

View File

@ -18,6 +18,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "compliance", name = "compliance",
bootstrap = ["//tools/testing:node_no_angular_es5"],
data = [ data = [
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package", "//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
], ],
@ -25,9 +26,7 @@ jasmine_node_test(
tags = [ tags = [
"ivy-only", "ivy-only",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
deps = [ deps = [
":test_lib", ":test_lib",
"//tools/testing:node_no_angular_es5",
], ],
) )

View File

@ -15,6 +15,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "check_types", name = "check_types",
timeout = "long", # 900 seconds timeout = "long", # 900 seconds
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/common:npm_package", "//packages/common:npm_package",
"//packages/core:npm_package", "//packages/core:npm_package",
@ -24,12 +25,10 @@ jasmine_node_test(
# compiler has its own typechecking implementation and tests. # compiler has its own typechecking implementation and tests.
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":check_types_lib", ":check_types_lib",
"//packages/core", "//packages/core",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )
@ -46,10 +45,9 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "typescript_version", name = "typescript_version",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"], bootstrap = ["//tools/testing:node_es5"],
deps = [ deps = [
":typescript_version_lib", ":typescript_version_lib",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )

View File

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

View File

@ -23,14 +23,13 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "ngtsc", name = "ngtsc",
timeout = "long", timeout = "long",
bootstrap = ["//tools/testing:node_no_angular_es5"],
data = [ data = [
"//packages/compiler-cli/test/ngtsc/fake_core:npm_package", "//packages/compiler-cli/test/ngtsc/fake_core:npm_package",
], ],
shard_count = 4, shard_count = 4,
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
deps = [ deps = [
":ngtsc_lib", ":ngtsc_lib",
"//tools/testing:node_no_angular_es5",
"@npm//minimist", "@npm//minimist",
], ],
) )

View File

@ -19,6 +19,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "test", name = "test",
timeout = "long", # 900 seconds timeout = "long", # 900 seconds
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/common:npm_package", "//packages/common:npm_package",
"//packages/core:npm_package", "//packages/core:npm_package",
@ -29,12 +30,10 @@ jasmine_node_test(
# of these transformer utilities. # of these transformer utilities.
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":test_lib", ":test_lib",
"//packages/core", "//packages/core",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
"@npm//source-map", "@npm//source-map",
], ],
) )

View File

@ -70,6 +70,7 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "test", name = "test",
bootstrap = ["//tools/testing:node_es5"],
data = [ data = [
"//packages/animations:npm_package", "//packages/animations:npm_package",
"//packages/common: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. # Disabled as these tests pertain to the old ngc compilation and are not relevant in Ivy.
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":test_lib", ":test_lib",
":test_node_only_lib", ":test_node_only_lib",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
"@npm//base64-js", "@npm//base64-js",
"@npm//source-map", "@npm//source-map",
], ],

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -59,8 +59,8 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "test", name = "test",
bootstrap = ["//tools/testing:node_es5"],
shard_count = 4, shard_count = 4,
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":test_lib", ":test_lib",
":test_node_only_lib", ":test_node_only_lib",
@ -68,7 +68,6 @@ jasmine_node_test(
"//packages/platform-server/testing", "//packages/platform-server/testing",
"//packages/zone.js/lib:zone_d_ts", "//packages/zone.js/lib:zone_d_ts",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
"@npm//base64-js", "@npm//base64-js",
"@npm//source-map", "@npm//source-map",
], ],

View File

@ -37,12 +37,11 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "acceptance", name = "acceptance",
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"], bootstrap = ["//tools/testing:node_es5"],
deps = [ deps = [
":acceptance_lib", ":acceptance_lib",
"//packages/zone.js/lib:zone_d_ts", "//packages/zone.js/lib:zone_d_ts",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
"@npm//base64-js", "@npm//base64-js",
"@npm//source-map", "@npm//source-map",
], ],

View File

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

View File

@ -16,14 +16,13 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "ivy", name = "ivy",
bootstrap = ["//packages/core/test/render3:domino_es5"],
tags = [ tags = [
"ivy-only", "ivy-only",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //packages/core/test/render3:domino_es5))"],
deps = [ deps = [
":ivy_lib", ":ivy_lib",
"//packages/core/test/render3:domino", "//packages/core/test/render3:domino",
"//packages/core/test/render3:domino_es5",
"//packages/zone.js/lib", "//packages/zone.js/lib",
], ],
) )

View File

@ -34,15 +34,14 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "view", name = "view",
bootstrap = ["//tools/testing:node_es5"],
tags = [ tags = [
"no-ivy-aot", "no-ivy-aot",
], ],
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
deps = [ deps = [
":view_lib", ":view_lib",
":view_node_only_lib", ":view_node_only_lib",
"//tools/testing:node", "//tools/testing:node",
"//tools/testing:node_es5",
], ],
) )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,16 +14,15 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "integration", name = "integration",
bootstrap = ["//tools/testing:node_no_angular_es5"],
data = glob( data = glob(
[ [
"locales/**", "locales/**",
"test_files/**", "test_files/**",
], ],
), ),
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_no_angular_es5))"],
deps = [ deps = [
":test_lib", ":test_lib",
"//tools/testing:node_no_angular_es5",
"@npm//glob", "@npm//glob",
"@npm//yargs", "@npm//yargs",
], ],

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -181,46 +181,41 @@ ts_library(
jasmine_node_test( jasmine_node_test(
name = "test_node", name = "test_node",
templated_args = ["--node_options=--require=$(rlocation $(location :node_entry_point_es5))"], bootstrap = [":node_entry_point_es5"],
deps = [ deps = [
":node_entry_point_es5",
":test_node_lib", ":test_node_lib",
], ],
) )
jasmine_node_test( jasmine_node_test(
name = "test_node_no_jasmine_clock", 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 = [ deps = [
":node_entry_point_no_patch_clock_es5",
":test_node_lib", ":test_node_lib",
], ],
) )
jasmine_node_test( jasmine_node_test(
name = "test_node_bluebird", name = "test_node_bluebird",
templated_args = ["--node_options=--require=$(rlocation $(location :node_bluebird_entry_point_es5))"], bootstrap = [":node_bluebird_entry_point_es5"],
deps = [ deps = [
":bluebird_spec", ":bluebird_spec",
":node_bluebird_entry_point_es5",
], ],
) )
jasmine_node_test( jasmine_node_test(
name = "test_node_error_disable_policy", 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 = [ deps = [
":node_error_disable_policy_entry_point", ":node_error_disable_policy_entry_point",
":node_error_disable_policy_entry_point_es5",
], ],
) )
jasmine_node_test( jasmine_node_test(
name = "test_node_error_lazy_policy", 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 = [ deps = [
":node_error_lazy_policy_entry_point", ":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 **kwargs
) )
def jasmine_node_test(deps = [], **kwargs): def jasmine_node_test(bootstrap = [], **kwargs):
"""Default values for jasmine_node_test""" """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//chokidar",
"@npm//domino", "@npm//domino",
"@npm//jasmine-core", "@npm//jasmine-core",
@ -268,9 +269,18 @@ def jasmine_node_test(deps = [], **kwargs):
"@npm//tslib", "@npm//tslib",
"@npm//xhr2", "@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( _jasmine_node_test(
deps = deps, deps = deps,
configuration_env_vars = ["angular_ivy_enabled"], configuration_env_vars = configuration_env_vars,
templated_args = templated_args,
**kwargs **kwargs
) )