Skip to content
Permalink

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
Choose a base ref
...
head repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.46.0
Choose a head ref
  • 4 commits
  • 15 files changed
  • 2 contributors

Commits on Dec 29, 2025

  1. 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)
    max-sixty authored Dec 29, 2025
    Configuration menu
    Copy the full SHA
    ac191ba View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2026

  1. 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]>
    max-sixty and claude authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    fd40cf7 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2026

  1. 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]>
    max-sixty and claude authored Jan 3, 2026
    Configuration menu
    Copy the full SHA
    3aa59d6 View commit details
    Browse the repository at this point in the history
  2. Release 1.46.0 (#855)

    ## 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]>
    max-sixty and claude authored Jan 3, 2026
    Configuration menu
    Copy the full SHA
    7d27e3a View commit details
    Browse the repository at this point in the history
Loading