Me: This PR fails on my machine


Me: This PR fails on my machine.

Dev: It works on my machine. ¯\_(ツ)_/¯

Me: Add a test that runs the feature on CI.

Dev: The new test passes on my machine, but fails on CI.

Me: Great! We've established there's something unique on only your machine. What's different?
A few nice things about this approach:

1. Now we have a test that assures the feature works.
2. The PR can't be merged until the test passes.
3. The developer now has proof that the feature only works on their machine. This avoids other developers having to prove innocence.
Update: The fix was npm install

View original on X