woife
woife
DDeno
Created by numberkruncher on 5/17/2024 in #help
How to mock modules like you can with jest?
The last resort for me was to use jest with deno (which completely goes against my intention to leave node in the first place) but I could not get it to run. Using jest was the recommendation from someone of the deno team in a github issue about the topic. They seem to have other priorities atm. I quit the deno experiment for now maybe I try again in some months.
9 replies
DDeno
Created by numberkruncher on 5/17/2024 in #help
How to mock modules like you can with jest?
It looks like the use cases are different but the root cause is the same I would say. In this section deno seems to be to immature atm. I was also really hyped about having all the tool set in one place to finally get rid of jest. Unfortunately it seems that there is to less pressure in this direction on the projects. This surprises me because does that mean all the other user do not or at least much less testing??? On the other hand this might be an opportunity to see things from a different perspective. I might restructure my tests in a way that I do not need the mock anymore. May this also be the case for you?
9 replies
DDeno
Created by numberkruncher on 5/17/2024 in #help
How to mock modules like you can with jest?
It seems that this is not possible with deno.
9 replies
DDeno
Created by SMell on 10/27/2023 in #help
ES Module mocking workaround
Hello this seems very complicated to me. I was hoping to get out of this test runner complexity with deno but it seems that deno is not there yet with its internal test runner
19 replies