diff --git a/cli/tests/test_commit_template.rs b/cli/tests/test_commit_template.rs index a6641f0075..5114fd244e 100644 --- a/cli/tests/test_commit_template.rs +++ b/cli/tests/test_commit_template.rs @@ -1008,6 +1008,46 @@ fn test_log_diff_predefined_formats() { M file2 "###); + // color labels + let stdout = test_env.jj_cmd_success( + &repo_path, + &["log", "--no-graph", "--color=debug", "-r@", "-T", template], + ); + insta::assert_snapshot!(stdout, @r###" + <> + <> + <><><><> + <><><><> + <><><><> + <> + <><><><><><><> + <><><><> + <> + <> + <> + <> + <> + <> + <> + <> + <><> + <> + <> + <> + <> + <> + <><><> + <><><> + <><> + <> + <><><> + <><><> + <> + <> + <> + <> + "###); + // cwd != workspace root let stdout = test_env.jj_cmd_success( test_env.env_root(),