Thank you for this awesome plugin.
I am not sure if this is actually by design or not, or worth fixing but just in case other people are having same issue, reporting it here.
Describe the bug
Cypress fails to load snapshot, even tho snapshot is there.
To Reproduce
Steps to reproduce the behavior:
setup cypress-plugin-snapshots per Readme
create test like so:
it("do not use `backtick`, it will break snapshot", ()=>{
// your test
});
Expected behavior
Snapshot is loaded and pass.
Actual Behavior
Snapshot begins like this:
exports[`do not use `backtick`, it will break snapshot #0`] = `...`
backtick breaks syntax, and node cannot read the snapshot.
Desktop (please complete the following information):
OS: [big sur 11.4, node 14]
Cypress Version [7.70]
Additional context
It's easy to fix once you figure it out.
Thank you for this awesome plugin. I am not sure if this is actually by design or not, or worth fixing but just in case other people are having same issue, reporting it here.
Describe the bug Cypress fails to load snapshot, even tho snapshot is there.
To Reproduce Steps to reproduce the behavior:
Expected behavior Snapshot is loaded and pass.
Actual Behavior Snapshot begins like this:
backtick breaks syntax, and node cannot read the snapshot.
Desktop (please complete the following information):
Additional context It's easy to fix once you figure it out.