feat: consulta pública de pedidos por código

This commit is contained in:
2026-08-09 23:48:55 -05:00
parent 7a7939e309
commit 1af4d2052d
24 changed files with 2639 additions and 33 deletions

44
tests/setup.js Normal file
View File

@@ -0,0 +1,44 @@
import { afterEach, vi } from 'vitest'
import { enableAutoUnmount } from '@vue/test-utils'
enableAutoUnmount(afterEach)
if (!navigator.clipboard) {
navigator.clipboard = { writeText: vi.fn().mockResolvedValue(undefined) }
}
if (typeof globalThis.ResizeObserver === 'undefined') {
globalThis.ResizeObserver = class ResizeObserver {
observe () {}
unobserve () {}
disconnect () {}
}
}
if (typeof globalThis.IntersectionObserver === 'undefined') {
globalThis.IntersectionObserver = class IntersectionObserver {
observe () {}
unobserve () {}
disconnect () {}
takeRecords () {
return []
}
}
}
if (typeof window.matchMedia !== 'function') {
window.matchMedia = query => ({
matches: false,
media: query,
onchange: null,
addListener: () => {},
removeListener: () => {},
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => false,
})
}
afterEach(() => {
vi.restoreAllMocks()
})