-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mocked
helper function implicitly requires config / dependencies
#782
Comments
Thanks @kwonoj for reporting the issue! |
huafu
added a commit
to huafu/ts-jest
that referenced
this issue
Oct 3, 2018
Importing from `ts-jest` everything will possibly make collision with future jest API. Also any star export or import might not be compatible with the target project. Now all helpers to be used in tests or config files have been moved to `ts-jest/utils`. Original ones have been kept in `ts-jest` for now, with a deprecation warning when using them. Closes kulshekhar#782
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just tried latest
mocked
helper and noticed couple of things, prevents to use it.Issue :
Expected behavior :
@types/babel__core
is devDependency (https://github.com/kulshekhar/ts-jest/blob/master/package.json#L77), so if consumer doesn't have those types it'll break.import _ts
if consumer's codebase do not use
esModuleInterop
, can't make this work.Debug log:
log file content
# content of ts-jest.log :
Minimal repo :
The text was updated successfully, but these errors were encountered: