Skip to content

Commit

Permalink
Adds load visibility to Jasmine Starlark code.
Browse files Browse the repository at this point in the history
Refs #67.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent f32d429 commit 8c009fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/jasmine/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ load(
_jasmine_web_test_suite = "jasmine_web_test_suite",
)

visibility("public")

jasmine_node_test = _jasmine_node_test
jasmine_web_test_suite = _jasmine_web_test_suite
2 changes: 2 additions & 0 deletions tools/jasmine/jasmine_node_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
load("@aspect_bazel_lib//lib:copy_file.bzl", "copy_file")
load("@aspect_rules_jasmine//jasmine:defs.bzl", "jasmine_test")

visibility("private")

def jasmine_node_test(name, deps, data = [], size = "small", **kwargs):
"""Wrapper for the `jasmine_node_test()` rule.
Expand Down
2 changes: 2 additions & 0 deletions tools/jasmine/jasmine_web_test_suite.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ https://github.com/bazelbuild/rules_webtesting/blob/6b47a3f11b7f302c2620a3552cf8
load("@io_bazel_rules_webtesting//web:web.bzl", "web_test_suite")
load(":jasmine_node_test.bzl", "jasmine_node_test")

visibility("private")

# Copied from https://github.com/bazelbuild/rules_webtesting/blob/6b47a3f11b7f302c2620a3552cf8eea8855e8c9e/web/internal/constants.bzl#L20-L45.
# When a browser target name matches with one of these tags, they are used for
# the generated `web_test()`.
Expand Down

0 comments on commit 8c009fa

Please sign in to comment.