no-interpolation-in-snapshots
Added in v0.8.0Configuration
rslint.config.ts
Rule Details
Disallows interpolation inside inline snapshots. Updating a snapshot rewrites the literal in the source file, so interpolated values can be silently lost.
Only toMatchInlineSnapshot and toThrowErrorMatchingInlineSnapshot are checked. Other snapshot matchers keep their expected value outside the source file and are not affected by snapshot updates in the same way.