- Added Vue plugin to vitest.config.ts for better component testing. - Introduced vitest.setup.ts to expose Vue reactivity and lifecycle methods globally, ensuring compatibility with .vue components. - Updated mock implementations in nuxt-imports.ts to include readonly for improved reactivity handling. - Refactored useMapBookmarks and useToast composables to utilize readonly from Vue for better state management.
33 lines
445 B
TypeScript
33 lines
445 B
TypeScript
import {
|
|
ref,
|
|
reactive,
|
|
computed,
|
|
watch,
|
|
watchEffect,
|
|
onMounted,
|
|
onUnmounted,
|
|
nextTick,
|
|
readonly,
|
|
} from 'vue'
|
|
|
|
export {
|
|
ref,
|
|
reactive,
|
|
computed,
|
|
watch,
|
|
watchEffect,
|
|
onMounted,
|
|
onUnmounted,
|
|
nextTick,
|
|
readonly,
|
|
}
|
|
|
|
export function useRuntimeConfig() {
|
|
return {
|
|
app: { baseURL: '/' },
|
|
public: { apiBase: '/map/api' },
|
|
}
|
|
}
|
|
|
|
export function navigateTo(_path: string) {}
|