Home > Net >  Jest Vue vm properties and methods unresolved in IntelliJ
Jest Vue vm properties and methods unresolved in IntelliJ

Time:11-20

My Vue Component:

 data() { 
    return {
      test: false,
    }
 },
 methods: {
    setTestToTrue() {
       this.test = true
 },

My JestJs test

enter image description here

Is there any way to get rid of the warnings?

CodePudding user response:

This would require adding special support for wrapper.vm, as the methods are added dynamically in runtime and thus can't be resolved statically

Please vote for WEB-51228 to be notified on any progress with it

  • Related