Files
Paul Gschwendtner 8e54b5773f build: move private testing helpers outside platform-browser/testing (#61571)
These helpers are often imported by various tests throughout the
repository, but the helpers aren't exported/exposed from the public
entry-point; even though they confusingly reside in there.

This commit fixes this, and moves the helpers into
`packages/private/testing`. This is a preparation for the `ts_project`
migration where we don't want to leverage deep imports between packages.

PR Close #61571
2025-05-21 16:04:42 +00:00

41 lines
1.0 KiB
Python

load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
load("//tools:defaults2.bzl", "ts_project")
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["**/*.ts"]),
interop_deps = [
"//packages/common",
"//packages/platform-browser",
"//packages/platform-browser-dynamic/testing",
"//packages/platform-browser/animations",
"//packages/platform-browser/animations/async",
"//packages/platform-browser/testing",
"//packages/private/testing",
],
deps = [
"//packages:types_rjs",
"//packages/animations:animations_rjs",
"//packages/animations/browser:browser_rjs",
"//packages/animations/browser/testing:testing_rjs",
"//packages/core:core_rjs",
"//packages/core/testing:testing_rjs",
],
)
jasmine_node_test(
name = "test",
bootstrap = ["//tools/testing:node"],
deps = [
":test_lib",
],
)
karma_web_test_suite(
name = "test_web",
deps = [
":test_lib",
],
)