Skip to content

Difference in __mocks__ automocks with Jest #466

Answered by sheremet-va
EvHaus asked this question in Q&A
Discussion options

You must be logged in to vote

This was done by design. We don't support automockig at this stage of development. Two main reasons are: it's more explicit and it gives better performance, since we don't need to resolve every request and try to find a mock.

I personally don't think we should support automocking. I asked people in Discord, when implemented vi.mock, and the people voted to not includid right now. If you think it's needed, you can start a discussion in Discord 👍🏻

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EvHaus
Comment options

@sheremet-va
Comment options

Answer selected by EvHaus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants