You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/Button/button.spec.ts
● Test suite failed to run
TypeError: Cannot destructure property 'config' of 'undefined' as it is undefined.
at Object.getCacheKey (node_modules/vue-jest/lib/index.js:10:7)
at ScriptTransformer._getCacheKey (node_modules/@jest/transform/build/ScriptTransformer.js:280:41)
at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:351:27)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:588:32)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:758:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:815:19)
Also experiencing this issue with jest ^27 and ts-jest ^27. Those versions are required for me to test the api client functions in our application which are written in TypeScript, but now I cannot test our Vue components with vue-test-utils.
Jest 27 has breaking changes. We are working on support and discussing it here: #343
If you feel strongly about this, we could sure use some help in reorganizing this repo so support Vue 3, Jest 27, etc. Please see #343 for more information.
If you need a fix right now, you could just use Jest 26.
The error message is as follows:
tests/Button/button.spec.ts
● Test suite failed to run
And my jest.config.js code:
package.json
The text was updated successfully, but these errors were encountered: