Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

chore(tests): update snapshots to insta modern format (#771)

Maximilian Roos6de933998c54
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap
index 444549638..9627524d8 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap
@@ -1,6 +1,5 @@
---
source: tests/integration_tests/ci_status.rs
-assertion_line: 612
info:
program: wt
args:
@@ -23,12 +22,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap
index 65c402fdc..9627524d8 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap
@@ -1,6 +1,5 @@
---
source: tests/integration_tests/ci_status.rs
-assertion_line: 592
info:
program: wt
args:
@@ -23,12 +22,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap b/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap
index d2d6bf64c..7801a31bd 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap
@@ -22,12 +22,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_merge.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_merge.snap
index c4985a8d2..d9be9f406 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_merge.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_merge.snap
@@ -23,12 +23,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_remove.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_remove.snap
index b074bb2cc..51121f841 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_remove.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_post_remove.snap
@@ -23,12 +23,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_pre_remove.snap b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_pre_remove.snap
index 03c05ac20..cfed66b7f 100644
--- a/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_pre_remove.snap
+++ b/tests/snapshots/integration__integration_tests__hook_show__hook_show_filter_pre_remove.snap
@@ -23,12 +23,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap b/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap
index 9fcc7593f..6a0a1996b 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap
@@ -4,7 +4,7 @@ info:
program: wt
args:
- "-C"
- - /private/var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpMgGbDu/repo
+ - /private/var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeeGXaP/repo
- list
env:
CLICOLOR_FORCE: "1"
diff --git a/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_directory_missing.snap b/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_directory_missing.snap
index 46e6482c7..109d2db08 100644
--- a/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_directory_missing.snap
+++ b/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_directory_missing.snap
@@ -22,12 +22,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_keep_branch.snap b/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_keep_branch.snap
index d6441c694..9731740dd 100644
--- a/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_keep_branch.snap
+++ b/tests/snapshots/integration__integration_tests__remove__remove_pruned_worktree_keep_branch.snap
@@ -23,12 +23,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__command_failure.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__command_failure.snap
index 540cf91b0..d97aaa91d 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__command_failure.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__command_failure.snap
@@ -1,6 +1,7 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
βœ— Branch existing already exists
↳ To switch to the existing branch, remove --create and run wt switch existing
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge.snap
index 0d1ee5188..ba6aa6dab 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge.snap
@@ -1,6 +1,7 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
β—‹ Already up to date with main (no new commits, no rebase needed)
β—‹ Worktree preserved (main worktree)
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_bash.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_bash.snap
index 3f8fe27ff..82b2062a1 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_bash.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_bash.snap
@@ -2,6 +2,7 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—Ž Running pre-merge project:check1:
  _REPO_/mixed-output.sh check1 3
[check1] stdout line 1
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_zsh.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_zsh.snap
index 3f8fe27ff..82b2062a1 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_zsh.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_mixed_stdout_stderr_zsh.snap
@@ -2,6 +2,7 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—Ž Running pre-merge project:check1:
  _REPO_/mixed-output.sh check1 3
[check1] stdout line 1
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_bash.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_bash.snap
index 49ca951f0..40a172db2 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_bash.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_bash.snap
@@ -1,7 +1,8 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
β—Ž Running pre-merge project:format:
  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_zsh.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_zsh.snap
index 49ca951f0..40a172db2 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_zsh.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_failure_zsh.snap
@@ -1,7 +1,8 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
β—Ž Running pre-merge project:format:
  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_bash.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_bash.snap
index 9113c99f6..d2ffa39f3 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_bash.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_bash.snap
@@ -2,6 +2,7 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—Ž Running pre-merge project:format:
  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_zsh.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_zsh.snap
index 9113c99f6..d2ffa39f3 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_zsh.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__merge_with_pre_merge_success_zsh.snap
@@ -2,6 +2,7 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—Ž Running pre-merge project:format:
  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_merge.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_merge.snap
index 5dd5e609d..7585fe03e 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_merge.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_merge.snap
@@ -2,6 +2,7 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—Ž Squashing 3 commits into a single commit (2 files, +45)...
β—Ž Generating squash commit message...
  feat(api): Add user authentication endpoints
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_remove.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_remove.snap
index 8689e36cf..fd254a17c 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_remove.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_remove.snap
@@ -2,5 +2,6 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—Ž Removing feature-api worktree & branch in background (same commit as main, _)
β—‹ Switched to worktree for main @ _REPO_
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_switch_back.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_switch_back.snap
index 310c47f92..38e6d8ecf 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_switch_back.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_switch_back.snap
@@ -2,4 +2,5 @@
source: tests/integration_tests/shell_wrapper.rs
expression: "&output.combined"
---
+
β—‹ Switched to worktree for feature-api @ _REPO_.feature-api
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__remove.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__remove.snap
index 96035d893..c009d2e8f 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__remove.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__remove.snap
@@ -1,5 +1,6 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
β—Ž Removing to-remove worktree & branch in background (same commit as main, _)
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__source_flag_error_passthrough.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__source_flag_error_passthrough.snap
index 24883e47e..7644133b4 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__source_flag_error_passthrough.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__source_flag_error_passthrough.snap
@@ -1,7 +1,8 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
error: unrecognized subcommand 'foo'
tip: a similar subcommand exists: 'hook'
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__step_for_each.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__step_for_each.snap
index f2c331299..fcab659d9 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__step_for_each.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__step_for_each.snap
@@ -1,7 +1,8 @@
---
source: tests/integration_tests/shell_wrapper.rs
-expression: output.normalized()
+expression: "&output.combined"
---
+
β—Ž Running in main...
Branch: main
β—Ž Running in feature-a...
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap
index 0886f2bfb..068e8c865 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap
@@ -23,12 +23,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_no_verify.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_no_verify.snap
index 651555012..cbc589d64 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_no_verify.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_no_verify.snap
@@ -24,12 +24,12 @@ info:
PATH: "[PATH]"
RUST_LOG: warn
SHELL: ""
- SOURCE_DATE_EPOCH: "1735776000"
TERM: alacritty
USERPROFILE: "[TEST_HOME]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
WT_TEST_DELAYED_STREAM_MS: "-1"
+ WT_TEST_EPOCH: "1735776000"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: true