(testPath: string, snapExtension: string) => string
undefined
Custom handler for resolving snapshot paths in tests.
By default, Rstest saves snapshot files in the same directory as the test files, under a __snapshots__
folder.
You can use resolveSnapshotPath
to customize this behavior and specify a different location for your snapshot files.
For example, store snapshots next to test files: