File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/ui/client/components Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2+ import { hasFailedSnapshot } from ' @vitest/ws-client'
23import {
34 browserState ,
45 client ,
@@ -30,6 +31,10 @@ const graphData = computed(() => {
3031 }
3132})
3233
34+ const failedSnapshot = computed (() => {
35+ return current .value && hasFailedSnapshot (current .value )
36+ })
37+
3338function open() {
3439 const filePath = current .value ?.filepath
3540 if (filePath ) {
@@ -116,7 +121,7 @@ debouncedWatch(
116121 >
117122 <div >
118123 <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 " />
120125 <div
121126 v-if =" current?.file.projectName"
122127 font-light
You can’t perform that action at this time.
0 commit comments