fix: update ParentView tests to use mount options and improve mock implementations
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m18s

This commit is contained in:
2026-03-24 16:38:06 -04:00
parent e9f4343426
commit ac29ee9bd0
2 changed files with 81 additions and 24 deletions

View File

@@ -89,13 +89,6 @@ async function refresh() {
loading.value = false
}
defineExpose({
refresh,
items,
centerItem,
scrollToItem,
})
const scrollToItem = async (itemId: string) => {
await nextTick()
const card = itemRefs.value[itemId]
@@ -123,6 +116,13 @@ const centerItem = async (itemId: string) => {
}
}
defineExpose({
refresh,
items,
centerItem,
scrollToItem,
})
const handleClicked = async (item: any) => {
await nextTick()
const wrapper = scrollWrapper.value