2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2018-03-21 17:22:06 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-03-21 17:22:06 -04:00
|
|
|
srcs = glob(["**/*.ts"]),
|
|
|
|
deps = [
|
|
|
|
"//packages:types",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler-cli",
|
|
|
|
"//packages/compiler-cli/test:test_utils",
|
|
|
|
"//packages/compiler/test:test_utils",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/platform-browser",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//typescript",
|
2018-03-21 17:22:06 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2018-09-14 12:48:55 -04:00
|
|
|
timeout = "long", # 900 seconds
|
2018-03-21 17:22:06 -04:00
|
|
|
data = [
|
|
|
|
"//packages/common:npm_package",
|
|
|
|
"//packages/core:npm_package",
|
|
|
|
"//packages/router:npm_package",
|
|
|
|
],
|
2018-10-16 02:24:22 -04:00
|
|
|
tags = [
|
2018-11-27 15:30:46 -05:00
|
|
|
# Disabled as these tests pertain to the old compiler and not ngtsc, which doesn't use any
|
|
|
|
# of these transformer utilities.
|
|
|
|
"no-ivy-aot",
|
2018-10-16 02:24:22 -04:00
|
|
|
],
|
2020-01-10 16:39:52 -05:00
|
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
2018-03-21 17:22:06 -04:00
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
"//packages/core",
|
2020-01-10 16:39:37 -05:00
|
|
|
"//tools/testing:node",
|
2020-01-10 16:39:52 -05:00
|
|
|
"//tools/testing:node_es5",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//source-map",
|
2018-03-21 17:22:06 -04:00
|
|
|
],
|
|
|
|
)
|