[Vuejs]-How do I create Vue instance with Jest (Vue is not defined)

0👍

Since it’s expected that Vue is global variable rather than an import, it needs to be provided the same way as $:

global.Vue = require("vue")

Leave a comment