% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snapshot.R
\name{get_snapshot_path}
\alias{get_snapshot_path}
\title{Get Snapshot File Path}
\usage{
get_snapshot_path(name, script_name = NULL, ext = "md")
}
\arguments{
\item{name}{Character. The name of the snapshot (without extension).}

\item{script_name}{Optional. The name of the script file creating the snapshot.
If NULL, detects from the active RStudio source editor via
\code{rstudioapi::getSourceEditorContext()$path}, falling back to the call
stack, then to \code{"interactive"}.}

\item{ext}{Character. The file extension for the snapshot file (default: "md").}
}
\value{
The full path to the snapshot file.
}
\description{
Constructs the path to a snapshot file within the project's snapshot directory.
Snapshot files are stored under \code{tests/_resultcheck_snaps/} by default,
organized by script name. This location can be overridden with
\code{snapshot.dir} in \code{_resultcheck.yml}.
}
\keyword{internal}
