Bug LocalStorage in Jest
-
Hello everyone, i’m having this bug when i try running jest in my project:
TypeError: quasar_1.LocalStorage.getItem is not a function
quasar.conf.js
// Quasar plugins plugins: [ 'Notify', 'Dialog', 'LocalStorage', 'SessionStorage', 'Loading', 'AppFullscreen' ]
my test file:
import { createLocalVue, shallowMount, mount } from '@vue/test-utils' import * as All from 'quasar' const { Quasar } = All import Vuelidate from 'vuelidate' import GcCreateAccount from '../gcCreateAccount.vue' const localVue = createLocalVue() localVue.use(Vuelidate) localVue.use(Quasar, { components: [All], plugins: [All], directives: [All] })
-
probably best to report testing issues in the Quasar testing github issues page: