import { setActivePinia, createPinia } from 'pinia' import { describe, it, expect, beforeEach } from 'vitest' import { useTestStore } from '~/stores/testStore' describe('TestStore sanity', () => { beforeEach(() => { setActivePinia(createPinia()) }) it('adds data correctly', async () => { const store = useTestStore() await store.addData() expect(store.getDatas).toContain('fdgfg') }) })