refactor: just point to jq doc

This commit is contained in:
Alex Eagle 2023-01-09 11:22:36 -08:00 committed by Derek Cormier
parent 0df23e54db
commit 14b8ec7a7b
2 changed files with 4 additions and 14 deletions

9
docs/testing.md generated
View File

@ -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**

View File

@ -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