vue.js vuetify test-utils warning : Vue warn]: Invalid prop: type check failed for prop “src”. Expected String, got Object
问题 Using v-parallax vuetify with a prop to display an asset URL (it's a recommended hack..) <v-parallax :src="parallaxUrl()"> methods: { parallaxUrl() { return require("@/assets/images/hero.jpeg"); }, I get the image displayed correctly, BUT running test:unit , I aslo get a warning , as the v-parallax require a string and not an object... The test pass correctly ( it's only a warning..) , however is there a way to get rid of this warning ? thanks for feedback 回答1: When you require an file, it