Skip to content

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

Add insta snapshot testing configuration

Maximilian Roos5a615a949af4
diff --git a/.config/insta.yaml b/.config/insta.yaml
new file mode 100644
index 000000000..4151c8563
--- /dev/null
+++ b/.config/insta.yaml
@@ -0,0 +1,8 @@
+# Insta snapshot testing configuration
+# https://insta.rs/docs/settings/
+
+test:
+ # Use nextest as the test runner
+ runner: "nextest"
+ # Fall back to cargo-test if nextest is not available
+ test_runner_fallback: true
diff --git a/.config/wt.toml b/.config/wt.toml
index a2957e02b..9630dde3e 100644
--- a/.config/wt.toml
+++ b/.config/wt.toml
@@ -43,5 +43,5 @@ pre-commit = "pre-commit run --all-files"
[pre-merge]
# Build test helpers first (dev-detach isn't a compile-time dependency)
build = "cargo build -p dev-detach"
-insta = "NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never cargo insta test --dnd --check --test-runner nextest --test-runner-fallback true --features shell-integration-tests"
+insta = "NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never cargo insta test --dnd --check --features shell-integration-tests"
doc = "RUSTDOCFLAGS='-Dwarnings' cargo doc --no-deps"