Skip to content

TypeError: Cannot read property 'options' of undefined #267

@gem007bd

Description

@gem007bd

I am facing this error even for the simple test case with the latest version. I am trying to update vue2 to vue3
I am using:
"vue": "^3.0.0-rc.5",
"vuex": "^4.0.0-beta.4",
"vue-jest": "^5.0.0-alpha.3",
"@vue/test-utils": "^2.0.0-beta.2"

Test suite failed to run

TypeError: Cannot read property 'options' of undefined

  at getTsJestConfig (node_modules/vue-jest/lib/utils.js:71:45)
  at processTemplate (node_modules/vue-jest/lib/process.js:73:20)
  at Object.module.exports [as process] (node_modules/vue-jest/lib/process.js:107:26)
  at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:463:35)
  at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:568:40)
  at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:606:25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions