[Vuejs]-Vue.js unit tests error Module not found

0👍

I should not use ‘sr/..’ in . the import

import mutations from '@/vuex/mutations.js'
import { ADD_SHOPPING_LIST } from '@/vuex/mutation_types.js'

but rather ‘@’ (as for ‘@/omponents/..)

import mutations from '@/vuex/mutations.js'
import { ADD_SHOPPING_LIST } from '@/vuex/mutation_types.js'

Leave a comment