Using Bzlmod with Bazel 6 or later:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_jasmine", version = "2.0.4")Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_jasmine",
sha256 = "1bb9b52f7c7409ef19175f610679f6ab9d2eba79e2f2bda6d5aa2502f732ca25",
strip_prefix = "rules_jasmine-2.0.4",
url = "https://github.com/aspect-build/rules_jasmine/releases/download/v2.0.4/rules_jasmine-v2.0.4.tar.gz",
)
######################
# aspect_rules_jasmine setup #
######################
# Fetches the aspect_rules_jasmine dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_jasmine//jasmine:dependencies.bzl", "rules_jasmine_dependencies")
# Fetch dependencies which users need as well
rules_jasmine_dependencies()
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()What's Changed
- fix(jasmine): filter out sharding-skipped tests from all reporters by @alan-agius4 in #193
Full Changelog: v2.0.3...v2.0.4