mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit removes most tests that were designated as only covering View Engine code. It also removes tag filters from CI and local commands to run tests. In a few cases (such as with the packages/compiler tests), this tag was improperly applied, and certain test cases have been added back running in Ivy mode. This commit also empties `@angular/compiler/testing` as it is no longer necessary (this is safe since compiler packages are not public API). It can be deleted in the future. PR Close #43884
127 lines
2.5 KiB
Text
127 lines
2.5 KiB
Text
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
# Uses separate test rules to allow the tests to run in parallel
|
|
|
|
ts_library(
|
|
name = "test_utils",
|
|
testonly = True,
|
|
srcs = [
|
|
"mocks.ts",
|
|
"test_support.ts",
|
|
],
|
|
visibility = [
|
|
":__subpackages__",
|
|
"//packages/language-service/test:__subpackages__",
|
|
],
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/src/ngtsc/testing",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
# extract_18n_spec
|
|
ts_library(
|
|
name = "extract_i18n_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"extract_i18n_spec.ts",
|
|
],
|
|
deps = [
|
|
":test_utils",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "extract_i18n",
|
|
bootstrap = ["//tools/testing:node_es5"],
|
|
data = [
|
|
"//packages/core:npm_package",
|
|
],
|
|
deps = [
|
|
":extract_i18n_lib",
|
|
"//packages/common:npm_package",
|
|
"//packages/core",
|
|
"@npm//yargs",
|
|
],
|
|
)
|
|
|
|
# perform_watch_spec
|
|
ts_library(
|
|
name = "perform_watch_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"perform_watch_spec.ts",
|
|
],
|
|
deps = [
|
|
":test_utils",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"//packages/private/testing",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "perform_watch",
|
|
bootstrap = ["//tools/testing:node_es5"],
|
|
data = [
|
|
"//packages/core:npm_package",
|
|
],
|
|
deps = [
|
|
":perform_watch_lib",
|
|
"//packages/core",
|
|
],
|
|
)
|
|
|
|
# perform_compile_spec
|
|
ts_library(
|
|
name = "perform_compile_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"perform_compile_spec.ts",
|
|
],
|
|
deps = [
|
|
":test_utils",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "perform_compile",
|
|
bootstrap = ["//tools/testing:node_es5"],
|
|
data = [
|
|
"//packages/core:npm_package",
|
|
],
|
|
deps = [
|
|
":perform_compile_lib",
|
|
"//packages/core",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "typescript_support_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"typescript_support_spec.ts",
|
|
],
|
|
deps = [
|
|
"//packages/compiler-cli",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "typescript_support",
|
|
bootstrap = ["//tools/testing:node_es5"],
|
|
deps = [
|
|
":typescript_support_lib",
|
|
],
|
|
)
|