mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
We don't need this tooling anymore because we are already validating that there are no circular dependencies via the `ng-dev` tooling that checks `.ts` files directly. Also these tests never actually failed to my knowledge. PR Close #61209
62 lines
1.3 KiB
Text
62 lines
1.3 KiB
Text
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
|
|
|
# Test that should only be run in node
|
|
NODE_ONLY = [
|
|
"**/*_node_only_spec.ts",
|
|
"aot/**/*.ts",
|
|
]
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
exclude = NODE_ONLY,
|
|
),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/common",
|
|
"//packages/compiler",
|
|
"//packages/compiler/test/expression_parser/utils",
|
|
"//packages/compiler/test/ml_parser/util",
|
|
"//packages/core",
|
|
"//packages/core/src/compiler",
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
"//packages/platform-browser/testing",
|
|
"@npm//source-map",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_node_only_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
NODE_ONLY,
|
|
),
|
|
deps = [
|
|
":test_lib",
|
|
"//packages/compiler",
|
|
"//packages/compiler/test/expression_parser/utils",
|
|
"//packages/core",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
":test_node_only_lib",
|
|
"@npm//source-map",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|