Open
Description
Subject of the issue
When used in a Jest ESM environment, attempting to import createMock
results in a error:
● Test suite failed to run
SyntaxError: The requested module 'ts-auto-mock' does not provide an export named 'createMock'
at Runtime.linkAndEvaluateModule (node_modules/jest-runtime/build/index.js:682:5)
Your environment
- ts-auto-mock version: 3.6.4
- typescript version: 4.9.4
- node version: 18.12.1
- yarn version: 1.22.19
- jest version: 29.3.1
- jest-ts-auto-mock version: 2.1.0
Steps to reproduce
Reproducible example available here. Project is set up in accordance to the Jest ESM docs.
Expected behavior
ts-auto-mock
should work fine in ESM environments.
Actual behavior
ts-auto-mock
doesn't work in ESM environments as importing it results in an error.
Metadata
Metadata
Assignees
Labels
No labels