- Add tests target for `test`, `test_node_only` and `test_web` in `core` package. - Created a `_testing_init` pseudo package where bootstrap code for tests is kept. - Moved `source_map_util` from `test` to `testing` so to prevent circular dependency. - Removed `visibility:public` for testing `BUILD` packages. PR Close #21053
28 lines
671 B
Python
28 lines
671 B
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
|
|
|
ts_library(
|
|
name = "browser",
|
|
testonly = 1,
|
|
srcs = ["init_browser_spec.ts"],
|
|
tsconfig = "//packages:tsconfig",
|
|
deps = [
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser-dynamic/testing",
|
|
"//packages/platform-browser/animations",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "node",
|
|
testonly = 1,
|
|
srcs = ["init_node_spec.ts"],
|
|
tsconfig = "//packages:tsconfig",
|
|
deps = [
|
|
"//packages/core/testing",
|
|
"//packages/platform-server",
|
|
"//packages/platform-server/testing",
|
|
],
|
|
)
|