Carl-Erik Kopseng

Results 383 comments of Carl-Erik Kopseng

This is starting to get a bit exotic ... Think you could get away with simply faking the required exports yourself?

@benjamingr I am at a bit of a loss as to how to do this cleanly without hooking into module loader territory, so if you have a way of doing...

@benjamingr Know if something for us to hook into will arrive?

@dmurvihill If you know how we can do this in some reasonable manner, then feel free to supply a PR. I do not know how. To the best of my...

Never got a reply from Node folks on a [related question](https://github.com/orgs/nodejs/discussions/55528), so this is requiring a deeper look from someone interested.

Kevin's general approach works fine - ESM or no ESM (if you exclude Jest specifics): while the exports are not assignable, their fields are. So we can easily use the...

@rosmcmahon I wrote [up a small answer on SO](https://stackoverflow.com/a/76836065/200987) on how you can generally use Sinon alongside Quibble (or any other similar tool, like Proxyquire) to mock modules when running...

The problem is that Jest is a combination of many things: - test runner (a la Mocha) - stubs and spies (a la Sinon) - module interception (a la Proxyquire)...

In [the article I have out for review](https://github.com/sinonjs/sinon/pull/2540) I discuss three different approaches to exactly this issue, one of which is the tool independent route of exposing ways of injecting...

@hoang-himself How is that better? It says the latest release is 3 years old there as well.