Skip to content

Commit f0f7b58

Browse files
committed
build(bazel): swc_common test
1 parent 8ac5311 commit f0f7b58

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

crates/swc_common/BUILD.bazel

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@swc_cargo_workspace_index//:defs.bzl", "crate_deps")
2-
load("@rules_rust//rust:defs.bzl", "rust_library")
2+
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
33

44
package(default_visibility = ["//visibility:public"])
55

@@ -34,6 +34,11 @@ rust_library(
3434
deps = base_deps,
3535
)
3636

37+
rust_test(
38+
name = "swc_common_test",
39+
crate = ":swc_common",
40+
)
41+
3742
# Note: https://bazelbuild.slack.com/archives/CSV56UT0F/p1652691033613939
3843
# bazel doesn't have cargo-like feature control system.
3944
# Instead should have corresponding build targets with explcit list of
@@ -52,3 +57,8 @@ rust_library(
5257
],
5358
deps = base_deps + crate_deps(["parking_lot"]),
5459
)
60+
61+
rust_test(
62+
name = "swc_common_concurrent_test",
63+
crate = ":swc_common_concurrent",
64+
)

0 commit comments

Comments
 (0)