mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Removes usages of zone-based helpers such as `waitForAsync` as part of the migration to zoneless tests. Completes the transition to zoneless.
60 lines
1.3 KiB
Text
60 lines
1.3 KiB
Text
load("//tools:defaults.bzl", "ts_project", "zoneless_jasmine_test", "zoneless_web_test_suite")
|
|
|
|
# Test that should only be run in node
|
|
NODE_ONLY = [
|
|
"**/*_node_only_spec.ts",
|
|
]
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
exclude = NODE_ONLY,
|
|
),
|
|
deps = [
|
|
"//:node_modules/source-map",
|
|
"//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",
|
|
"//packages/private/testing",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_node_only_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
NODE_ONLY,
|
|
),
|
|
deps = [
|
|
":test_lib",
|
|
"//:node_modules/typescript",
|
|
"//packages/compiler",
|
|
"//packages/compiler/test/expression_parser/utils",
|
|
"//packages/core",
|
|
],
|
|
)
|
|
|
|
zoneless_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib",
|
|
":test_node_only_lib",
|
|
"//:node_modules/source-map",
|
|
],
|
|
)
|
|
|
|
zoneless_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|