From 14b8ec7a7bd072771008a8029fcb96c8ceca34c8 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 9 Jan 2023 11:22:36 -0800 Subject: [PATCH] refactor: just point to jq doc --- docs/testing.md | 9 ++------- lib/testing.bzl | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index 1ad3f26..ff4ff04 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -40,13 +40,8 @@ Assert that the given json files have the same semantic content. Uses jq to filter each file. The default value of `"."` as the filter means to compare the whole file. -WORKSPACE users must register the jq toolchain in their to use this rule: - -```starlark -load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains") - -register_jq_toolchains() -``` +See the [jq rule](./jq.md#jq) for more about the filter expressions as well as +setup notes for the `jq` toolchain. **PARAMETERS** diff --git a/lib/testing.bzl b/lib/testing.bzl index 948bcc2..7acf67b 100644 --- a/lib/testing.bzl +++ b/lib/testing.bzl @@ -78,13 +78,8 @@ def assert_json_matches(name, file1, file2, filter1 = ".", filter2 = "."): Uses jq to filter each file. The default value of `"."` as the filter means to compare the whole file. - WORKSPACE users must register the jq toolchain in their to use this rule: - - ```starlark - load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains") - - register_jq_toolchains() - ``` + See the [jq rule](./jq.md#jq) for more about the filter expressions as well as + setup notes for the `jq` toolchain. Args: name: name of resulting diff_test target