-
-
Notifications
You must be signed in to change notification settings - Fork 146
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.45.1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.46.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 4 commits
- 15 files changed
- 2 contributors
Commits on Dec 29, 2025
-
Add test for multiline snapshots without special characters (#848)
Test case from issue #827 to verify that multiline snapshots containing only newlines (no quotes or backslashes) are output as regular strings rather than raw strings. (for transparency, claude code made this)
Configuration menu - View commit details
-
Copy full SHA for ac191ba - Browse repository at this point
Copy the full SHA ac191baView commit details
Commits on Jan 2, 2026
-
Fix docs for test.runner_fallback config key (#853)
## Summary The documentation showed `test_runner_fallback` as the config key, but the code expected `runner_fallback`. This is consistent with other keys under `test:`: ```yaml test: runner: nextest # not test_runner runner_fallback: true # not test_runner_fallback (was documented wrong) unreferenced: warn # not test_unreferenced auto_review: true # not test_auto_review ``` ## Changes - Fix documentation to show correct key: `runner_fallback` - Add integration test verifying config file setting works - Fix typo in error message (`INSTA_RUNNER_FALLBACK` → `INSTA_TEST_RUNNER_FALLBACK`) ## Example ```yaml # .config/insta.yaml test: runner: nextest runner_fallback: true # this is the correct key ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd40cf7 - Browse repository at this point
Copy the full SHA fd40cf7View commit details
Commits on Jan 3, 2026
-
Add INSTA_PENDING_DIR environment variable for hermetic builds (#852)
## Summary This adds support for the `INSTA_PENDING_DIR` environment variable, which allows pending snapshots to be written to a separate directory while keeping the source tree read-only. This is particularly useful for hermetic build systems like Bazel. When `INSTA_PENDING_DIR` is set: - Pending snapshots (`.snap.new` and `.pending-snap` files) are written to the specified directory, preserving the same relative structure as the workspace - `cargo-insta` correctly discovers and maps these pending snapshots back to their target locations in the source tree - External test paths (e.g., `path = "../tests/lib.rs"`) are rejected with a clear error, as they would escape the pending directory ### Key changes - **insta**: Add `get_pending_dir()` and `pending_snapshot_path()` in `env.rs` - **insta**: Update `runtime.rs` to use `pending_snapshot_path` for all snapshot file operations - **insta**: Create parent directories in `snapshot.rs` when pending dir is set - **cargo-insta**: Update `find_pending_snapshots()` in `walk.rs` to support path mapping between `pending_root` and `target_root` - **cargo-insta**: Simplify `load_snapshot_containers()` in `cli.rs` to use unified loop for both hermetic and default modes - **cargo-insta**: Add comprehensive tests in `pending_dir.rs` (9 new tests) ## Test plan - [x] All 93 cargo-insta tests pass - [x] New `pending_dir` tests cover: file snapshots, inline snapshots, accept, reject, auto-creation, update existing, check mode, outside workspace, and external test path rejection - [x] Clippy clean - [x] Pre-commit passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3aa59d6 - Browse repository at this point
Copy the full SHA 3aa59d6View commit details -
## Summary - Add `INSTA_PENDING_DIR` environment variable for Bazel and other hermetic build systems - Fix documentation for `test.runner_fallback` config key - Fix missing attribution for #834 ## Test plan - [x] All tests pass - [x] Pre-commit passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7d27e3a - Browse repository at this point
Copy the full SHA 7d27e3aView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.45.1...1.46.0