I have a very annoying problem which is my test cannot pass at all because all the imports inside my testing component are not recognized, example: vue router to make api calls with this.$http.get('route') gives me: "Cannot read get of undefined", and I have even imported it already in the .spec file. Also this happens with every single thing that isn't pure and rudimentary of vue, like drag and drop frameworks, rules, even some vuetify buttons and stuff gives warning of not being recognized and make snapshot tests fail, I have already imported everything in main.js also in the .spec file just to be sure, and the tests still fail, I have to basically comment all imports inside the component that I want to test and make them absurdly simple in order to everything be accepted, someone have any thoughts? Some importments that gives me this problem: vue router, vuex's store, vuetify-google-autocomplete, vue2-editor, vue2-dropzone.
Aucun commentaire:
Enregistrer un commentaire