jj/cli/tests/common
Jonas Greitemann 908fb6e84f config-schema: add test asserting schema defaults match default config
Extracts the `"default"` values from the schema and creates a synthetic
TOML file holding all the defaults according to the schema. This is done
through some `jq` magic and is not perfect but rather a best effort.
If `jq` is not available, the test is skipped; in CI `jq` is required.

The test then run `jj config get` in the test env for each key in that
defaults file and compares the resulting value with the schema default.
For a few keys, there are actually no defaults known to `jj config get`,
because they are hard-coded or dynamic. These exceptions are intercepted
and explained in the test.
2025-06-01 17:36:37 +00:00
..
command_output.rs completion: fix completion of arguments for aliases/default-command in bash and zsh 2025-04-29 14:38:25 +00:00
config_schema_defaults.rs config-schema: add test asserting schema defaults match default config 2025-06-01 17:36:37 +00:00
mod.rs config-schema: add test asserting schema defaults match default config 2025-06-01 17:36:37 +00:00
test_environment.rs tests: remove obsolete helpers 2025-05-07 19:29:20 +00:00