add test utils to include pinia store

This commit is contained in:
Julien Calixte
2023-04-09 10:20:28 +02:00
parent ee6941bf76
commit e6e7db466a
2 changed files with 24 additions and 2 deletions

View File

@@ -1,12 +1,12 @@
import { defineStore } from 'pinia'
import type { Taskable } from '../interfaces/taskable'
interface State {
export interface TaskStoreState {
tasks: Taskable[]
}
export const useTaskStore = defineStore('task-store', {
state: (): State => ({
state: (): TaskStoreState => ({
tasks: []
}),
actions: {