test(useOverlay): add composable tests (#4482)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Eugen Istoc
2025-07-10 06:04:18 -04:00
committed by GitHub
parent a4d0ca7396
commit a813ea700e
4 changed files with 181 additions and 2 deletions

22
test/mocks/MockModal.vue Normal file
View File

@@ -0,0 +1,22 @@
<template>
<div class="mock-modal">
<h2>{{ title }}</h2>
<p>{{ description }}</p>
<button
@click="$emit('close', 'test-result')"
>
Close
</button>
</div>
</template>
<script setup lang="ts">
const { title = 'Test Modal', description = 'Test Description' } = defineProps<{
title?: string
description?: string
}>()
defineEmits<{
close: [value: string]
}>()
</script>