Unit testing in Node.js can be challenging. After trying various libraries, I found Rewire to be the most practical for testing purposes