import type { Ref } from 'vue'
import type { ErrorWithDiff } from '@vitest/utils'
import type { RunState } from '../../../types'

export const testRunState: Ref<RunState> = ref('idle')
export const finished = computed(() => testRunState.value === 'idle')
export const unhandledErrors: Ref<ErrorWithDiff[]> = ref([])
