/** * Expose Vue reactivity and lifecycle on globalThis so that .vue components * that rely on Nuxt auto-imports (ref, computed, etc.) work in Vitest. */ import { ref, computed, reactive, watch, watchEffect, onMounted, onUnmounted, nextTick, readonly, } from 'vue' Object.assign(globalThis, { ref, computed, reactive, watch, watchEffect, onMounted, onUnmounted, nextTick, readonly, })