Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug?) snapshot load fails when you use backtick (`) in description #192

Open
wataru358 opened this issue Jul 13, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@wataru358
Copy link

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:

  1. setup cypress-plugin-snapshots per Readme
  2. 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.

@wataru358 wataru358 added the bug Something isn't working label Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants