-
Notifications
You must be signed in to change notification settings - Fork 309
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
[Bug]: Declaration of TestComponent with signal input breaks jest.mock #2530
Comments
Seems like the issue is related to hoisting with |
Is there a link to the issue in ts-jest? And I can't understand why it works without signal input if the problem is ts-jest... |
No there are any issues opened yet in We transform codes using |
Should I open an issue? |
I digged a bit more. So the transformed code looks a bit like this
Here we can see clearly that because of Setting
With this information, I think it's sufficient enough to create an issue for |
Version
14.1.0
Steps to reproduce
Expected behavior
Test pass, jest.mock works in test-with-input.spec.ts
Actual behavior
jest.mock not works in test-with-input.spec.ts. Test fails.
Additional context
Temporary workaround
Declare TestComponent in separate file.
Environment
The text was updated successfully, but these errors were encountered: