From 832e77e55589fa81056ff5da6a2357bb070823d2 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Wed, 15 Nov 2023 09:20:19 -0500 Subject: [PATCH] add worktree test --- .gitignore | 2 ++ xt/worktree-clean.t | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 xt/worktree-clean.t diff --git a/.gitignore b/.gitignore index ce74a94..65ad0e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.test_info.* +lastlog.jsonl *.bak lab .envrc diff --git a/xt/worktree-clean.t b/xt/worktree-clean.t new file mode 100644 index 0000000..48c467d --- /dev/null +++ b/xt/worktree-clean.t @@ -0,0 +1,12 @@ +use Test2::V0; + +use Git::Wrapper; + +my $git = Git::Wrapper->new('.'); + +my $status = $git->status; + +# note: 'yath' might create .test_info and lastlog.jsonl files +ok !$status->is_dirty => "worktree is clean"; + +done_testing;