LCOV - code coverage report
Current view: top level - packages/design-system/src/components/toast - ToastClose.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 5 5
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <script setup lang="ts">
       2              : import type { ToastCloseProps } from 'reka-ui'
       3              : import { ToastClose, useForwardProps } from 'reka-ui'
       4              : import type { HTMLAttributes } from 'vue'
       5              : 
       6              : import { cn } from '@comfyorg/tailwind-utils'
       7              : 
       8              : import Button from '@comfyorg/design-system/button/Button'
       9              : 
      10          168 : const { class: className, ...restProps } = defineProps<
      11              :   ToastCloseProps & { class?: HTMLAttributes['class'] }
      12              : >()
      13          168 : const forwardedProps = useForwardProps(restProps)
      14          168 : </script>
      15              : 
      16              : <template>
      17         1546 :   <ToastClose v-bind="forwardedProps" as-child>
      18              :     <Button
      19              :       variant="muted-textonly"
      20              :       size="icon-sm"
      21              :       :class="cn('ml-auto', className)"
      22              :     >
      23              :       <i class="icon-[lucide--x]" aria-hidden="true" />
      24              :     </Button>
      25              :   </ToastClose>
      26              : </template>
        

Generated by: LCOV version 2.0-1