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

Jest snapshots seem to ignore \r #15

Open
brodybits opened this issue Mar 17, 2020 · 0 comments
Open

Jest snapshots seem to ignore \r #15

brodybits opened this issue Mar 17, 2020 · 0 comments
Assignees

Comments

@brodybits
Copy link
Owner

While finishing some work I discovered that when using Jest snapshots, it misses the difference between using \r\n and \n. This could be an issue when using something like simple-xml-writer, which seems to use \r\n for line breaks. I discovered this on Jest 25.

Related is that Stryker Mutator should be able to pick this kind of thing up, but as of Stryker Mutator 3.0.2 it does not seem to mutate regex such as /\r\n\/g which could be used in a JavaScript string replace function call.

I hope to find a way to get these resolved someday soon.

@brodybits brodybits self-assigned this Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant