Vue-jest: `TypeError: tr.configsFor is not a function` causes on [email protected] and above

Created on 4 Nov 2020  路  4Comments  路  Source: vuejs/vue-jest

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

Most helpful comment

This can be fixed by reverting https://github.com/kulshekhar/ts-jest/pull/2020 . ts-jest will have the next release 26.4.4 soon which can include the revert.

All 4 comments

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

This can be fixed by reverting https://github.com/kulshekhar/ts-jest/pull/2020 . ts-jest will have the next release 26.4.4 soon which can include the revert.

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

@ahnpnl Thank you for your works!
GitHub Actions Log

Was this page helpful?
0 / 5 - 0 ratings