Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.
Is this a bug report or a feature request?
Bug report.
If this is a bug report, please provide as much info as possible
version
2.1.7
platform
Windows, Unix
expected behavior
Calling snapshot like this:
snapshot('Before typing')
Should result in a line in snapshot.json like this:
"Before typing": "<div>Example HTML code</div"
actual behavior
The resulting file always uses the index of the snapshot in the test, i.e.:
1: "<div>Example HTML code</div"
This is in confilct with the documentation. You can use this format to do it but it's more verbose:
Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.
Is this a bug report or a feature request?
Bug report.
If this is a bug report, please provide as much info as possible
2.1.7
Windows, Unix
Calling snapshot like this:
snapshot('Before typing')
Should result in a line in snapshot.json like this:
"Before typing": "<div>Example HTML code</div"
The resulting file always uses the index of the snapshot in the test, i.e.:
1: "<div>Example HTML code</div"
This is in confilct with the documentation. You can use this format to do it but it's more verbose:
snapshot( { name: "Before typing" } )