Files
nuxtci/tests/stores.spec.ts
valere c5da118661
All checks were successful
Deploy App / test (push) Successful in 9s
Deploy App / deploy (push) Successful in 51s
test
2025-09-20 00:48:03 +02:00

16 lines
414 B
TypeScript

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')
})
})