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

Fix whitespace errors of snapshot tests #5

Open
ztefanie opened this issue Jan 24, 2024 · 1 comment
Open

Fix whitespace errors of snapshot tests #5

ztefanie opened this issue Jan 24, 2024 · 1 comment

Comments

@ztefanie
Copy link
Member

The snapshot tests failed on my local machine due to "missing" white spaces, after adding the the "missing" whitespaces, if fails in the CI. Would be nice if we somehow can change the snapshot testing so it is ignoring whitespaces or at least they lead to the same behavior on different machines.

See e.g. this for reference: https://app.circleci.com/pipelines/github/digitalfabrik/app-toolbelt/11/workflows/53fb5e5f-3df2-4ec5-8e87-3aeebf725e88/jobs/12

@steffenkleinle
Copy link
Member

I think I had this problem (or similar) before n another context with date time library, where I added a normalizeWhitespace before: https://github.com/digitalfabrik/integreat-app/blob/ca719e98ebc24facb0e5478f8402a1733c6ee934/api-client/src/models/__tests__/DateModel.spec.ts#L10

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

2 participants