Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

522 B
Raw Blame
import { describe, it, expect } from 'vitest';

// Guards the lifecycle option in tests/setup.ts: a cross-origin call nobody mocked must
// fail here rather than actually leaving the runner (see msw/handlers/external.ts for the
// FX widget that once did, and answered after its test environment was gone).
describe('msw unhandled requests', () => {
  it('FE-MSW-EGRESS-001: an unmocked cross-origin request is refused', async () => {
    await expect(fetch('https://unmocked.example/rates')).rejects.toThrow();
  });
});