hannoeru / jest-esbuild

A Jest esbuild transformer
MIT License
18 stars 7 forks source link

Jest.mock module mocking not working #6

Open jimdubbs opened 2 years ago

jimdubbs commented 2 years ago

When trying to mock a module import using jest.mock, the mock is not utilized.

lughino commented 1 year ago

I just hit the same issue. It looks like other esbuild transformers had to handle the mock using babel. Is there any plan to add this use case in this transformer @hannoeru ? Without it, we cannot use any mock functionality, which makes it completely unusable