Skip to content

Commit

Permalink
feat(bazel/karma): expose karma web test rule in shared karma code
Browse files Browse the repository at this point in the history
We should re-export the unmodified karma web test macro/rule in the
dev-infra Karma shared code so that a single import in consumer
repositories like framework is sufficient. Currently framework
would need to import from `@bazel/concatjs` and from `dev-infra-private/bazel/karma`
to get access to the Karma Bazel rules/macros.
  • Loading branch information
devversion committed Feb 17, 2022
1 parent bf9a773 commit 09cb90c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bazel/karma/index.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ load(
_karma_web_test_suite = "karma_web_test_suite",
)

# Re-export of unmodified Karma test macros/rules.
karma_web_test = _karma_web_test

def _karma_debug_browsers_target(name, **web_test_args):
"""Macro for defining a standalone karma web test target that starts Karma
without a browser, allowing for manual debugging."""
Expand Down

0 comments on commit 09cb90c

Please sign in to comment.