We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FileDetails
1 parent 71c1754 commit e9ddf9cCopy full SHA for e9ddf9c
packages/ui/client/components/FileDetails.vue
@@ -1,4 +1,5 @@
1
<script setup lang="ts">
2
+import { hasFailedSnapshot } from '@vitest/ws-client'
3
import {
4
browserState,
5
client,
@@ -30,6 +31,10 @@ const graphData = computed(() => {
30
31
}
32
})
33
34
+const failedSnapshot = computed(() => {
35
+ return current.value && hasFailedSnapshot(current.value)
36
+})
37
+
38
function open() {
39
const filePath = current.value?.filepath
40
if (filePath) {
@@ -116,7 +121,7 @@ debouncedWatch(
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
126
v-if="current?.file.projectName"
127
font-light
0 commit comments