Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
test(docs): drop the command-page sync test its docs file outlived (#3802)
Worktrunk Botb688e8142b72
diff --git a/tests/integration_tests/readme_sync.rs b/tests/integration_tests/readme_sync.rsindex e44afed3c..968d63144 100644--- a/tests/integration_tests/readme_sync.rs+++ b/tests/integration_tests/readme_sync.rs@@ -1641,91 +1641,6 @@ fn test_config_source_templates_are_in_sync() {}}-/// Update help markers in a docs file-/// Uses unified MARKER_PATTERN, processes only help commands (backtick IDs)-fn sync_help_markers(file_path: &Path, project_root: &Path) -> Result<usize, Vec<String>> {- let content = fs::read_to_string(file_path)- .map_err(|e| vec![format!("Failed to read {}: {}", file_path.display(), e)])?;-- let mut result = content.clone();- let mut errors = Vec::new();- let mut updated = 0;-- // Collect all matches and filter to help commands only- let matches: Vec<_> = MARKER_PATTERN- .captures_iter(&content)- .filter_map(|cap| {- let id = cap.get(1).unwrap().as_str().trim();- // Only process help commands (backtick IDs)- if matches!(MarkerType::from_id(id), MarkerType::Help) {- let full_match = cap.get(0).unwrap();- let current = cap.get(2).unwrap().as_str();- Some((- full_match.start(),- full_match.end(),- id.to_string(),- current.to_string(),- ))- } else {- None- }- })- .collect();-- // Process in reverse order- for (start, end, id, current) in matches.into_iter().rev() {- let expected = match help_output(&id, project_root) {- Ok(content) => content,- Err(e) => {- errors.push(format!("❌ {}: {}", id, e));- continue;- }- };-- if trim_lines(¤t) != trim_lines(&expected) {- let replacement = format_replacement(&id, &expected, &OutputFormat::Unwrapped);- result.replace_range(start..end, &replacement);- updated += 1;- }- }-- if !errors.is_empty() {- return Err(errors);- }-- if updated > 0 {- fs::write(file_path, &result).unwrap();- }- Ok(updated)-}--#[test]-fn test_docs_commands_are_in_sync() {- let project_root = Path::new(env!("CARGO_MANIFEST_DIR"));- let commands_path = project_root.join("docs/content/commands.md");-- if !commands_path.exists() {- // Skip if docs directory doesn't exist- return;- }-- match sync_help_markers(&commands_path, project_root) {- Ok(updated_count) => {- if updated_count > 0 {- panic!(- "Docs commands out of sync: updated {} section(s) in {}. \- Run tests locally and commit the changes.",- updated_count,- commands_path.display()- );- }- }- Err(errors) => {- panic!("Docs commands are out of sync:\n\n{}\n", errors.join("\n"));- }- }-}-/// Sync docs snapshot markers in a single file (with ANSI to HTML conversion)fn sync_docs_snapshots(doc_path: &Path, project_root: &Path) -> Result<usize, Vec<String>> {if !doc_path.exists() {