Skip to content
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

TypeError: tr.configsFor is not a function causes on ts-jest@26.4.2 and above #294

Closed
nogic1008 opened this issue Nov 4, 2020 · 4 comments

Comments

@nogic1008
Copy link
Collaborator

In this package, TsJestTransformer.configsFor() is used in utils/getTsJestConfig function.
But, unfortunately, this method has been deleted on v26.4.2, kulshekhar/ts-jest#2020.
So TypeError: tr.configsFor is not a function error causes on test.

Workaround

downgrade ts-jest version to 26.4.1 or below in package-lock.json(npm) or yarn.lock(yarn)

Fixes

plz merge #284 and release

Refs

@zigomir
Copy link

zigomir commented Nov 4, 2020

Ugh, thanks @nogic1008 for opening this. I've spent so much time figuring out what's going on here. +💯

@ahnpnl
Copy link

ahnpnl commented Nov 7, 2020

This can be fixed by reverting kulshekhar/ts-jest#2020 . ts-jest will have the next release 26.4.4 soon which can include the revert.

LinusBorg pushed a commit to LinusBorg/portal-vue that referenced this issue Nov 8, 2020
@ahnpnl
Copy link

ahnpnl commented Nov 8, 2020

ts-jest 26.4.4 is out, this issue should be fixed now

@nogic1008
Copy link
Collaborator Author

@ahnpnl Thank you for your works!
GitHub Actions Log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants