2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2017-12-17 18:10:54 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2019-11-13 17:26:58 -05:00
|
|
|
srcs = [
|
|
|
|
"completions_spec.ts",
|
|
|
|
"definitions_spec.ts",
|
|
|
|
"diagnostics_spec.ts",
|
|
|
|
"global_symbols_spec.ts",
|
|
|
|
"hover_spec.ts",
|
|
|
|
"html_info_spec.ts",
|
|
|
|
"language_service_spec.ts",
|
|
|
|
"reflector_host_spec.ts",
|
|
|
|
"template_references_spec.ts",
|
|
|
|
"template_spec.ts",
|
|
|
|
"test_utils.ts",
|
|
|
|
"ts_plugin_spec.ts",
|
|
|
|
"typescript_host_spec.ts",
|
|
|
|
"utils_spec.ts",
|
|
|
|
],
|
2019-09-12 18:20:54 -04:00
|
|
|
data = glob(["project/**/*"]),
|
2017-12-17 18:10:54 -05:00
|
|
|
deps = [
|
|
|
|
"//packages/compiler",
|
2018-03-21 19:59:04 -04:00
|
|
|
"//packages/compiler-cli/test:test_utils",
|
2017-12-17 18:10:54 -05:00
|
|
|
"//packages/language-service",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//typescript",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2018-03-21 19:59:04 -04:00
|
|
|
data = [
|
|
|
|
"//packages/common:npm_package",
|
|
|
|
"//packages/core:npm_package",
|
|
|
|
"//packages/forms:npm_package",
|
|
|
|
],
|
2018-10-16 02:24:22 -04:00
|
|
|
tags = [
|
2019-11-29 04:56:50 -05:00
|
|
|
# the language service is not yet compatible with Ivy
|
|
|
|
"no-ivy-aot",
|
2018-10-16 02:24:22 -04:00
|
|
|
],
|
2017-12-17 18:10:54 -05:00
|
|
|
deps = [
|
2018-03-21 19:59:04 -04:00
|
|
|
":test_lib",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
|
|
|
)
|
2019-11-13 17:26:58 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "diagnostics_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = [
|
|
|
|
"expression_diagnostics_spec.ts",
|
|
|
|
"mocks.ts",
|
|
|
|
"typescript_symbols_spec.ts",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler-cli/test:test_utils",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/language-service",
|
|
|
|
"@npm//typescript",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "diagnostics",
|
|
|
|
data = [
|
|
|
|
"//packages/common:npm_package",
|
|
|
|
"//packages/core:npm_package",
|
|
|
|
"//packages/forms:npm_package",
|
|
|
|
],
|
|
|
|
tags = [
|
|
|
|
# Disabled as these tests pertain to diagnostics in the old ngc compiler. The Ivy ngtsc
|
|
|
|
# compiler has its own tests for diagnostics.
|
|
|
|
"no-ivy-aot",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":diagnostics_lib",
|
|
|
|
],
|
|
|
|
)
|