Replies: 1 comment 1 reply
-
Have you tried forcing a specific eol with gitattributes? Like this: https://github.com/vitest-dev/vitest/blob/main/.gitattributes |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Need help in the least-smelly way to deal with Windows errors. My tests are full of failures like this:
My code is as simple as:
I’ve tried
rejects.toThrowError()
entirely, but then all my tests are in manualtry/catch
blocks with lots of string replacement and I’m not using Vitest conveniencesexpectedErrorMsgString
line endings based on platform, but that in some ways feels even worseAlso as a general rule I try to avoid having branching logic paths in tests (
if (os.platform() === 'win32') { …
because that also can hide bugs.What are others’ strategies for testing error messages on Windows and Linux reliably?
Beta Was this translation helpful? Give feedback.
All reactions