DEV Community

Discussion on: Creating a project template using Laravel, Vue 3, and Tailwind - Part 2

Collapse
 
6rucewayne profile image
6ruceWayne

Hi! Could you help me please? After I run command "npm run test" I get following log:
FAIL tests/components/Home.test.js
? 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)
Enter fullscreen mode Exit fullscreen mode

I have no idea what it can mean

Collapse
 
0xaliraza profile image
Ali Raza

You need to remove vue-jest and use vue3-jest.