Hacker News new | ask | show | jobs
by neebz 2790 days ago
If anyone on mixpanel is reading this I would love to know how do they maintain mocks? We've been burnt so many times with outdated mocks in my experience that I've always tried to supplement our front-end tests with Selenium as they run against a real server.
1 comments

OP here. In our front-end tests, I haven't really noticed cases where the mocks get out of date that don't cause the test cases using the mock to fail, at which point we'd update the mock data. We also have end-to-end Selenium tests as supplement to our front-end tests which helps with catching format mismatch between front-end and backend (granted they're not that comprehensive at the moment).