angular/packages/zone.js/test/zone-spec/clock-tests/BUILD.bazel
Joey Perrott a52f4a1987 build: separate zone.js dependencies into their own directory (#63612)
Separate out zone.js dependencies

PR Close #63612
2025-09-08 12:30:40 -07:00

70 lines
1.3 KiB
Text

load("//packages/zone.js:tools.bzl", "jasmine_test", "ts_project")
ts_project(
name = "patched_init",
testonly = True,
srcs = [
"enable-clock-patch.ts",
"patched.init.ts",
],
deps = [
"//packages/zone.js/test:node_entry_point",
],
)
ts_project(
name = "test_patched_lib",
testonly = True,
srcs = [
"fake-async-patched-clock.spec.ts",
],
deps = [
"//packages/zone.js/lib:zone_d_ts",
],
)
ts_project(
name = "unpatched_init",
testonly = True,
srcs = [
"unpatched.init.ts",
],
deps = [
"//packages/zone.js/test:node_entry_point",
],
)
ts_project(
name = "test_unpatched_lib",
testonly = True,
srcs = [
"fake-async-unpatched-clock.spec.ts",
],
deps = [
"//packages/zone.js/lib:zone_d_ts",
],
)
jasmine_test(
name = "test_patched",
data = [
":patched.init.js",
":patched_init",
":test_patched_lib",
],
fixed_args = [
"--require=$$JS_BINARY__RUNFILES/$(rlocationpath :patched.init.js)",
],
)
jasmine_test(
name = "test_unpatched",
data = [
":test_unpatched_lib",
":unpatched.init.js",
":unpatched_init",
],
fixed_args = [
"--require=$$JS_BINARY__RUNFILES/$(rlocationpath :unpatched.init.js)",
],
)