Files
Inventory/frontend/tests/__mocks__/imports.ts
Matthieu 974a4a0781 refactor : merge Inventory_frontend submodule into frontend/ directory
Merges the full git history of Inventory_frontend into the monorepo
under frontend/. Removes the submodule in favor of a unified repo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 14:17:57 +02:00

36 lines
676 B
TypeScript

/**
* Minimal mock for Nuxt's #imports auto-import.
* Add stubs here as tests require them.
*/
import { ref } from 'vue'
export const useRuntimeConfig = () => ({
public: {
apiBaseUrl: 'http://localhost:8081/api',
appVersion: '0.0.0-test',
},
})
export const useRoute = () => ({
path: '/',
params: {},
query: {},
})
export const useRouter = () => ({
push: () => Promise.resolve(),
replace: () => Promise.resolve(),
})
export const navigateTo = () => Promise.resolve()
export const useRequestFetch = () => fetch
export const useFetch = () => ({
data: ref(null),
error: ref(null),
pending: ref(false),
refresh: () => Promise.resolve(),
})