News for hackers. Stuff that matters.
Re:Show HN: Local Node.js app to save everything you browse ... by breatheoften on Sunday December 22, 2019 @05:33PM (#21860104)
I tried to build something like this for jest tests in an app I worked on.

I wanted my jest tests to serve as both unit tests and service diagnostics - so I instrumented axios and setup a hidden cache layer within it when running inside the test suite. I was trying to figure out how to best organize the cache so I could run tests really quickly by having all results pulled from cache — or run it slow and as a service diagnostic mechanism by deleting the cache before execution ... I had to extend axios to accept a bit of additional logic from the application ...

it was hard for me to get it to work properly inside of jest though ...

There are no comments on this comment yet.