Relative Content

Tag Archive for sinon

How to mock an entire module in Sinon

I am trying to mock an imported function, since the module is an ES module and is a Sealed and readonly Object so the usual methods doesn’t seem to work due to ESM limitations.
So far I have tried: