[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(ui): `FileDetails` title status icon not being updated (#5942)

authored by

Joaquín Sánchez and committed by
GitHub
(Jun 20, 2024, 10:56 PM +0200) e9ddf9ce 71c1754b

+6 -1
+6 -1
packages/ui/client/components/FileDetails.vue
··· 1 1 <script setup lang="ts"> 2 + import { hasFailedSnapshot } from '@vitest/ws-client' 2 3 import { 3 4 browserState, 4 5 client, ··· 28 29 filepath: c.filepath, 29 30 projectName: c.file.projectName || '', 30 31 } 32 + }) 33 + 34 + const failedSnapshot = computed(() => { 35 + return current.value && hasFailedSnapshot(current.value) 31 36 }) 32 37 33 38 function open() { ··· 116 121 > 117 122 <div> 118 123 <div p="2" h-10 flex="~ gap-2" items-center bg-header border="b base"> 119 - <StatusIcon :task="current" /> 124 + <StatusIcon :state="current.result?.state" :mode="current.mode" :failed-snapshot="failedSnapshot" /> 120 125 <div 121 126 v-if="current?.file.projectName" 122 127 font-light