Open PaulRBerg opened 2 years ago
Side note: I have also moved to a pure ESM package so that's another potential cause for this error. As per the Jest documentation, mocking is currently not well supported in ESM:
Please note that we currently don't support
jest.mock
in a clean way in ESM, but that is something we intend to add proper support for in the future.
ugh, pure esm... currently the bane of my existence, was looking forward to using this, but currently seems like it won't be usable.
Description
Given the following code:
The TypeScript compilation fails with the following error:
Environment