- 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
27 lines
594 B
Python
27 lines
594 B
Python
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = 1,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
),
|
|
tsconfig = "//packages:tsconfig",
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/service-worker/worker",
|
|
"//packages/service-worker/worker/testing",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
srcs = [],
|
|
# TODO(alxhub): re-enable when need for main() is removed
|
|
tags = ["manual"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|