t16-store-loader.mjs 469 B

12345678
  1. // Headless store tests replace only the browser map service; stores and Pinia remain real.
  2. export async function resolve(specifier, context, nextResolve) {
  3. if (specifier.endsWith('/mapService.js')) return {
  4. url: 'data:text/javascript,' + encodeURIComponent('export const getCameraState=()=>null; export const highlightMapObject=()=>0; export const setCameraFocus=()=>false;'),
  5. shortCircuit: true,
  6. }
  7. return nextResolve(specifier, context)
  8. }