8
msdsk
126d

I'm fixing our wrapper for API calls. The typescript for it was nice and simple, except that halfway through it casted almost everything as `any` and then hand-typed the expected return type :)))

Took me almost two weeks to work through that wretched piece of code, I managed to get the types actually correct... but now it started to catch incorrect calls, so I have to go through quite a lot of files to fix the references. But the worst part?

Now it breaks unit tests.
Turns out, multiple frontend unit tests DID NOT MOCK API CALLS AT FUCKJNG ALL HGGHGGHHHHHH. I WONDER WHY THE TESTS WERE TAKING SO FUCKING LONG TO RUN. I AM FUCKING FROTHING AT MOUTH AND I MIGHT NEED TO BE PUT DOWN OR I WILL START BITING PEOPLE

Comments
  • 3
    Every time I read "wretched" the rest of the text is read with Hades from the game Hades' voice in my mind.
  • 3
    This is the worst part of this profession imo

    git blame isn’t enough anymore, we need a git blame —hunt-down —end-career command
  • 3
    “Yeah we develop with typescript!” “We are so modern!” “Wait… what is an interface?!?”
Add Comment