🚀 Feature Request
We love the aria snapshots feature, but the substituted numbers for regex \d is in our case un-necessary as our endpoints are mocked out - numbers and dates are static.
We would love an option to switch this off, so we just get the static text in the snapshot, no regex.
e.g. numbers: 'regex' | 'static' option added per snapshot and globally.
Example
we would switch this on globally in order to have static snapshots
Motivation
We update snapshots and all the time have to manually fix them. e.g.
having the exact date or number instead of a regex is better for us because:
- it tests more - we don't need an extra specific check for a each number in 10 lines under the snapshot
- in many of our cases the regex is longer and harder to read than just including the static value (see image above) - I think this is really obvious when your UI has alot of numbers in it, as is our case.