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
|
|
|
|
|
|
|
# check_types_spec
|
|
|
|
ts_library(
|
|
|
|
name = "check_types_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-03-21 17:22:06 -04:00
|
|
|
srcs = ["check_types_spec.ts"],
|
|
|
|
deps = [
|
|
|
|
"//packages/compiler-cli",
|
|
|
|
"//packages/compiler-cli/test:test_utils",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//typescript",
|
2018-03-21 17:22:06 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "check_types",
|
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",
|
|
|
|
],
|
2018-10-16 02:24:22 -04:00
|
|
|
tags = [
|
2018-11-27 15:30:46 -05:00
|
|
|
# Disabled as these tests pertain to typechecking in the old ngc compiler. The Ivy ngtsc
|
|
|
|
# compiler has its own typechecking implementation and tests.
|
|
|
|
"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 = [
|
|
|
|
":check_types_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",
|
2018-03-21 17:22:06 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-03-28 15:48:28 -04:00
|
|
|
# typescript_version_spec
|
|
|
|
ts_library(
|
|
|
|
name = "typescript_version_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-03-28 15:48:28 -04:00
|
|
|
srcs = ["typescript_version_spec.ts"],
|
|
|
|
deps = [
|
|
|
|
"//packages/compiler-cli",
|
|
|
|
"//packages/compiler-cli/test:test_utils",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "typescript_version",
|
2020-01-10 16:39:52 -05:00
|
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
2018-03-28 15:48:28 -04:00
|
|
|
deps = [
|
|
|
|
":typescript_version_lib",
|
2020-01-10 16:39:37 -05:00
|
|
|
"//tools/testing:node",
|
2020-01-10 16:39:52 -05:00
|
|
|
"//tools/testing:node_es5",
|
2018-03-28 15:48:28 -04:00
|
|
|
],
|
|
|
|
)
|